Use the correct group chat id
This commit is contained in:
parent
f3519b975c
commit
c8168e9ff0
|
@ -121,13 +121,12 @@
|
||||||
(fn [processed-message]
|
(fn [processed-message]
|
||||||
(processed-messages/save processed-message)))
|
(processed-messages/save processed-message)))
|
||||||
|
|
||||||
(defn system-message
|
(defn system-message [message-id timestamp content]
|
||||||
([message-id timestamp content]
|
{:from "system"
|
||||||
{:from "system"
|
:message-id message-id
|
||||||
:message-id message-id
|
:timestamp timestamp
|
||||||
:timestamp timestamp
|
:content content
|
||||||
:content content
|
:content-type constants/text-content-type})
|
||||||
:content-type constants/text-content-type}))
|
|
||||||
|
|
||||||
(re-frame/reg-fx
|
(re-frame/reg-fx
|
||||||
::participant-removed-from-group-message
|
::participant-removed-from-group-message
|
||||||
|
@ -499,8 +498,10 @@
|
||||||
{:keys [group-id timestamp message-id]} :payload}]]
|
{:keys [group-id timestamp message-id]} :payload}]]
|
||||||
(when (and (not= current-public-key from)
|
(when (and (not= current-public-key from)
|
||||||
chats-is-active-and-timestamp)
|
chats-is-active-and-timestamp)
|
||||||
{::participant-left-group-message {:group-id group-id :from from :message-id message-id
|
{::participant-left-group-message {:chat-id group-id
|
||||||
:timestamp timestamp}
|
:from from
|
||||||
|
:message-id message-id
|
||||||
|
:timestamp timestamp}
|
||||||
::chats-remove-contact [group-id from]
|
::chats-remove-contact [group-id from]
|
||||||
:db (update-in db [:chats group-id :contacts]
|
:db (update-in db [:chats group-id :contacts]
|
||||||
#(remove (fn [{:keys [identity]}]
|
#(remove (fn [{:keys [identity]}]
|
||||||
|
|
Loading…
Reference in New Issue