File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/status_im/common/home/actions Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 132132
133133(defn mark-as-untrusted-action
134134 [{:keys [public-key primary-name] :as item}]
135+ (tap> item)
135136 (hide-sheet-and-dispatch
136137 [:show-bottom-sheet
137138 {:content (fn []
138139 [confirmation-drawer/confirmation-drawer
139140 {:title (i18n/label :t/mark-as-untrusted )
140141 :description (i18n/label :t/mark-as-untrusted-description
141142 {:username (:primary-name item)})
143+ :extra-action (fn []
144+ (rf/dispatch [:toasts/upsert
145+ {:id :remove-contact
146+ :type :positive
147+ :text (->> (i18n/label :t/removed-from-contacts )
148+ (string/lower-case )
149+ (str primary-name " " ))}])
150+ (rf/dispatch [:contact.ui/remove-contact-pressed item]))
151+ :extra-text (i18n/label :t/remove-contact )
142152 :context item
143153 :accessibility-label :block-user
144154 :button-text (i18n/label :t/mark-as-untrusted-button )
You can’t perform that action at this time.
0 commit comments