mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-20 02:59:26 +01:00
fix: Display space as room if it contains unread events in timeline
This commit is contained in:
parent
301bea07e7
commit
12b114ba69
@ -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…
Reference in New Issue
Block a user