2
0
mirror of https://github.com/status-im/status-mobile.git synced 2025-01-19 13:12:41 +00:00

idempotent joined chat msg

Former-commit-id: dbfbd18eaf100ad9732799a2b432703953740b8b
This commit is contained in:
michaelr 2016-04-20 13:12:12 +03:00
parent c3d45f10c7
commit ff8dc7a4f7

@ -148,7 +148,7 @@
(defn joined-chat-msg [chat-id from msg-id] (defn joined-chat-msg [chat-id from msg-id]
(let [contact-name (:name (contacts/contact-by-identity from))] (let [contact-name (:name (contacts/contact-by-identity from))]
(save-message chat-id {:from "system" (save-message chat-id {:from "system"
:msg-id msg-id :msg-id (str msg-id "_" from)
:content (str (or contact-name from) " received chat invitation") :content (str (or contact-name from) " received chat invitation")
:content-type text-content-type}))) :content-type text-content-type})))