From 4c4e27267aaba3b9d663f47f3773ff52c09c11ae Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 9 May 2016 18:39:10 +0300 Subject: [PATCH] fix :chat-properties --- src/syng_im/subs.cljs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/syng_im/subs.cljs b/src/syng_im/subs.cljs index 91a01b5f80..fbfecbcb9e 100644 --- a/src/syng_im/subs.cljs +++ b/src/syng_im/subs.cljs @@ -102,9 +102,9 @@ (get @db :signed-up)))) (register-sub - :show-actions - (fn [db _] - (reaction (get-in @db db/show-actions-path)))) + :show-actions + (fn [db _] + (reaction (get-in @db db/show-actions-path)))) (register-sub :get-contacts @@ -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 {}))))