diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-20 21:08:44 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-20 21:08:44 +0100 |
| commit | 223e10691606a8d1885887fd6bb7570e1318e063 (patch) | |
| tree | ac8b7a380802f44229b49bab5cf3011acd2c69bc /src/Erebos/Chatroom.hs | |
| parent | e1765a3e39cfb0a1c1b53e38a6b1d36592566ef1 (diff) | |
Highlight new messages in conversation history
Diffstat (limited to 'src/Erebos/Chatroom.hs')
| -rw-r--r-- | src/Erebos/Chatroom.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Erebos/Chatroom.hs b/src/Erebos/Chatroom.hs index bdb101f..5a86b23 100644 --- a/src/Erebos/Chatroom.hs +++ b/src/Erebos/Chatroom.hs @@ -67,6 +67,9 @@ instance ConversationType ChatroomState ChatMessage where convMessageTime = cmsgTime convMessageText = cmsgText + convMessageListSince mbSince cstate = + map (, False) $ threadToListSince (maybe [] roomStateMessageData mbSince) (roomStateMessageData cstate) + data ChatroomData = ChatroomData { rdPrev :: [Stored (Signed ChatroomData)] |