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

onboarding
Christian Pauly 4 years ago
parent 598eb148d0
commit eb9fa05979

@ -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) ??

Loading…
Cancel
Save