From fe45178ce0bcfc325a88d93d3b1a8383ecdc117f Mon Sep 17 00:00:00 2001 From: michaelr Date: Thu, 28 Apr 2016 15:56:33 +0300 Subject: [PATCH] new-group-chat even to include group-name --- protocol/src/cljs/syng_im/protocol/handler.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/protocol/src/cljs/syng_im/protocol/handler.cljs b/protocol/src/cljs/syng_im/protocol/handler.cljs index 6fefc23..fe87b96 100644 --- a/protocol/src/cljs/syng_im/protocol/handler.cljs +++ b/protocol/src/cljs/syng_im/protocol/handler.cljs @@ -59,7 +59,7 @@ (declare handle-incoming-whisper-msg) -(defn handle-new-group-chat [web3 from {:keys [group-topic keypair identities msg-id]}] +(defn handle-new-group-chat [web3 from {:keys [group-topic keypair identities msg-id group-name]}] (send-ack web3 from msg-id {:group-invite group-topic}) (let [store (storage)] (when-not (chat-exists? store group-topic) @@ -69,7 +69,8 @@ (save-group-admin store group-topic from) (invoke-user-handler :new-group-chat {:from from :identities identities - :group-id group-topic})))) + :group-id group-topic + :group-name group-name})))) (defn decrypt-group-msg [group-topic encrypted-payload] (let [store (storage)]