mirror of
https://github.com/status-im/status-react.git
synced 2025-01-27 11:16:03 +00:00
fix :chat-properties
Former-commit-id: 4c4e27267aaba3b9d663f47f3773ff52c09c11ae
This commit is contained in:
parent
3db4ed389b
commit
4b29cb4070
@ -159,10 +159,10 @@
|
||||
(fn [db _] (reaction @db)))
|
||||
|
||||
(register-sub :chat-properties
|
||||
(fn [{:keys [current-chat-id] :as db} [_ properties]]
|
||||
(fn [db [_ properties]]
|
||||
(->> properties
|
||||
(map (fn [k]
|
||||
[k (-> @db
|
||||
(get-in [:cgats current-chat-id k])
|
||||
(get-in [:chats (:current-chat-id @db) k])
|
||||
(reaction))]))
|
||||
(into {}))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user