summaryrefslogtreecommitdiff
path: root/src/Erebos/Chatroom.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-10-12 19:23:47 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-10-21 20:12:28 +0200
commit7fb2f923f3cec61964f223cef7b60c8e8bb7fc3b (patch)
tree514e1b00935facd8b505010ed6d4f6de0fdb4065 /src/Erebos/Chatroom.hs
parentc506520d28bfa9adb6c9cd2f8e719c1a35a84bbe (diff)
Chatroom: unsubscribe when leaving
Diffstat (limited to 'src/Erebos/Chatroom.hs')
-rw-r--r--src/Erebos/Chatroom.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Erebos/Chatroom.hs b/src/Erebos/Chatroom.hs
index c8b5805..5ba137f 100644
--- a/src/Erebos/Chatroom.hs
+++ b/src/Erebos/Chatroom.hs
@@ -205,7 +205,7 @@ sendRawChatroomMessageByStateData lookupData mdReplyTo mdText mdLeave = void $ f
mergeSorted . (:[]) <$> mstore ChatroomStateData
{ rsdPrev = roomStateData cstate
, rsdRoom = []
- , rsdSubscribe = Just True
+ , rsdSubscribe = Just (not mdLeave)
, rsdMessages = [ mdata ]
}