From 223e10691606a8d1885887fd6bb7570e1318e063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Thu, 20 Nov 2025 21:08:44 +0100 Subject: Highlight new messages in conversation history --- src/Erebos/Chatroom.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Erebos/Chatroom.hs') 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)] -- cgit v1.2.3