terminal: update active group when message is updated (#891)

* terminal: update active group when message is updated

* fix
This commit is contained in:
Evgeny Poberezkin
2022-08-04 11:12:37 +01:00
committed by GitHub
parent 57e7034b4d
commit 91baf9f362

View File

@@ -1731,6 +1731,8 @@ processAgentMessage (Just user@User {userId, profile}) agentConnId agentMessage
then do
updCi <- withStore $ \db -> updateGroupChatItem db user groupId itemId (CIRcvMsgContent mc) msgId
toView . CRChatItemUpdated $ AChatItem SCTGroup SMDRcv (GroupChat gInfo) updCi
let g = groupName' gInfo
setActive $ ActiveG g
else messageError "x.msg.update: group member attempted to update a message of another member"
(SMDSnd, _) -> messageError "x.msg.update: group member attempted invalid message update"