fix: Display space as room if it contains unread events in timeline
This commit is contained in:
parent
598eb148d0
commit
eb9fa05979
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue