Commit 4255fc83 authored by Wilko Manger's avatar Wilko Manger

Add date header above chat creation event

Not above the first of known events.
parent a5c38d4d
......@@ -118,8 +118,10 @@ class ChatBloc {
previousEvent = event;
}
// Add DateHeader above all events
chatItems.add(DateItem(event.time));
// Add date header above first event in room
if (event is RoomCreationEvent) {
chatItems.add(DateItem(event.time));
}
_itemSubj.add(List.of(chatItems));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment