mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-03 22:07:23 +01:00 
			
		
		
		
	fix: Load space members to display DM rooms
This commit is contained in:
		
							parent
							
								
									a745d3ce68
								
							
						
					
					
						commit
						3ebf3ed26c
					
				@ -326,6 +326,16 @@ class ChatListController extends State<ChatList> {
 | 
			
		||||
    if (client.prevBatch?.isEmpty ?? true) {
 | 
			
		||||
      await client.onFirstSync.stream.first;
 | 
			
		||||
    }
 | 
			
		||||
    // Load space members to display DM rooms
 | 
			
		||||
    if (activeSpaceId != null) {
 | 
			
		||||
      final space = client.getRoomById(activeSpaceId);
 | 
			
		||||
      final localMembers = space.getParticipants().length;
 | 
			
		||||
      final actualMembersCount = (space.summary?.mInvitedMemberCount ?? 0) +
 | 
			
		||||
          (space.summary?.mJoinedMemberCount ?? 0);
 | 
			
		||||
      if (localMembers < actualMembersCount) {
 | 
			
		||||
        await space.requestParticipants();
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    return true;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user