diff options
Diffstat (limited to 'src/Erebos/Chatroom.hs')
| -rw-r--r-- | src/Erebos/Chatroom.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Erebos/Chatroom.hs b/src/Erebos/Chatroom.hs index fce8b1d..c535845 100644 --- a/src/Erebos/Chatroom.hs +++ b/src/Erebos/Chatroom.hs @@ -67,6 +67,11 @@ instance ConversationType ChatroomState ChatMessage where convMessageTime = cmsgTime convMessageText = cmsgText + convMessageExtra msg + | cmsgLeave msg = [ UserLeft ] + | Nothing <- cmsgText msg = [ UserJoined ] + | otherwise = [] + convReference = refDigest . storedRef . head . filterAncestors . concatMap storedRoots . roomStateData convMessageListSince mbSince cstate = ( 0, ) $ |