File tree Expand file tree Collapse file tree
src/main/frontend/handler/events Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 [missionary.core :as m]
1313 [promesa.core :as p]))
1414
15- (defn rtc-collaborators-dialog?
16- []
17- (= :rtc-collaborators (state/get-modal-id )))
18-
1915(defmethod events /handle :rtc/decrypt-user-e2ee-private-key [[_ encrypted-private-key]]
2016 (let [private-key-promise (p/deferred )
2117 refresh-token (str (state/get-auth-refresh-token ))]
22- (when-not (rtc-collaborators-dialog? )
23- (shui/dialog-close-all! ))
2418 (->
2519 (p/let [{:keys [password]} (state/<invoke-db-worker :thread-api/get-e2ee-password refresh-token)
2620 private-key (crypt/<decrypt-private-key password encrypted-private-key)]
3933
4034(defmethod events /handle :rtc/request-e2ee-password [[_]]
4135 (let [password-promise (p/deferred )]
42- (when-not (rtc-collaborators-dialog? )
43- (shui/dialog-close-all! ))
4436 (shui/dialog-open!
4537 #(e2ee/e2ee-request-new-password password-promise)
4638 {:auto-width? true
You can’t perform that action at this time.
0 commit comments