fix: Display space as room if it contains unread events in timeline

This commit is contained in:
Christian Pauly 2021-08-28 18:02:01 +02:00
parent 301bea07e7
commit 12b114ba69

View File

@ -185,7 +185,9 @@ class ChatListController extends State<ChatList> {
}
bool roomCheck(Room room) {
if (room.isSpace && room.membership == Membership.join) return false;
if (room.isSpace && room.membership == Membership.join && !room.isUnread) {
return false;
}
if (activeSpaceId != null) {
final space = Matrix.of(context).client.getRoomById(activeSpaceId);
if (space.spaceChildren?.any((child) => child.roomId == room.id) ??