mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17: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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user