mirror of
https://github.com/status-im/status-react.git
synced 2025-02-10 09:57:15 +00:00
fix :chat-properties
This commit is contained in:
parent
9e49529d12
commit
4c4e27267a
@ -159,10 +159,10 @@
|
|||||||
(fn [db _] (reaction @db)))
|
(fn [db _] (reaction @db)))
|
||||||
|
|
||||||
(register-sub :chat-properties
|
(register-sub :chat-properties
|
||||||
(fn [{:keys [current-chat-id] :as db} [_ properties]]
|
(fn [db [_ properties]]
|
||||||
(->> properties
|
(->> properties
|
||||||
(map (fn [k]
|
(map (fn [k]
|
||||||
[k (-> @db
|
[k (-> @db
|
||||||
(get-in [:cgats current-chat-id k])
|
(get-in [:chats (:current-chat-id @db) k])
|
||||||
(reaction))]))
|
(reaction))]))
|
||||||
(into {}))))
|
(into {}))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user