fix unread badge and add back button accessibility id (#14525)
This commit is contained in:
parent
c13be92505
commit
11d02c1057
|
@ -30,10 +30,12 @@
|
||||||
|
|
||||||
(defn left-section-view [{:keys [on-press icon accessibility-label type] :or {type :grey}}
|
(defn left-section-view [{:keys [on-press icon accessibility-label type] :or {type :grey}}
|
||||||
put-middle-section-on-left?]
|
put-middle-section-on-left?]
|
||||||
[rn/view {:style (merge
|
[rn/view {:style (when put-middle-section-on-left? {:margin-right 5})}
|
||||||
{:accessibility-label accessibility-label}
|
[button/button {:on-press on-press
|
||||||
(when put-middle-section-on-left? {:margin-right 5}))}
|
:icon true
|
||||||
[button/button {:on-press on-press :icon true :type type :size 32}
|
:type type
|
||||||
|
:size 32
|
||||||
|
:accessibility-label accessibility-label}
|
||||||
icon]])
|
icon]])
|
||||||
|
|
||||||
(defn- mid-section-comp
|
(defn- mid-section-comp
|
||||||
|
|
|
@ -214,9 +214,9 @@
|
||||||
(when-let [chat-id (:current-chat-id db)]
|
(when-let [chat-id (:current-chat-id db)]
|
||||||
(chat.state/reset-visible-item)
|
(chat.state/reset-visible-item)
|
||||||
(fx/merge cofx
|
(fx/merge cofx
|
||||||
|
{:db (dissoc db :current-chat-id)}
|
||||||
(delete-for-me/sync-all)
|
(delete-for-me/sync-all)
|
||||||
(delete-message/send-all)
|
(delete-message/send-all)
|
||||||
{:db (dissoc db :current-chat-id)}
|
|
||||||
(offload-messages chat-id))))
|
(offload-messages chat-id))))
|
||||||
|
|
||||||
(fx/defn force-close-chat
|
(fx/defn force-close-chat
|
||||||
|
|
Loading…
Reference in New Issue