fix unread badge and add back button accessibility id (#14525)

This commit is contained in:
Parvesh Monu 2022-12-13 14:56:46 +05:30 committed by GitHub
parent c13be92505
commit 11d02c1057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -30,10 +30,12 @@
(defn left-section-view [{:keys [on-press icon accessibility-label type] :or {type :grey}}
put-middle-section-on-left?]
[rn/view {:style (merge
{:accessibility-label accessibility-label}
(when put-middle-section-on-left? {:margin-right 5}))}
[button/button {:on-press on-press :icon true :type type :size 32}
[rn/view {:style (when put-middle-section-on-left? {:margin-right 5})}
[button/button {:on-press on-press
:icon true
:type type
:size 32
:accessibility-label accessibility-label}
icon]])
(defn- mid-section-comp

View File

@ -214,9 +214,9 @@
(when-let [chat-id (:current-chat-id db)]
(chat.state/reset-visible-item)
(fx/merge cofx
{:db (dissoc db :current-chat-id)}
(delete-for-me/sync-all)
(delete-message/send-all)
{:db (dissoc db :current-chat-id)}
(offload-messages chat-id))))
(fx/defn force-close-chat