mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	fix: Make sure that you deselect rooms on leaving, even if that fails
This commit is contained in:
		
							parent
							
								
									161791a07d
								
							
						
					
					
						commit
						b0ecc408b5
					
				@ -327,8 +327,11 @@ class ChatListController extends State<ChatList> {
 | 
			
		||||
    final client = Matrix.of(context).client;
 | 
			
		||||
    while (selectedRoomIds.isNotEmpty) {
 | 
			
		||||
      final roomId = selectedRoomIds.first;
 | 
			
		||||
      await client.getRoomById(roomId).leave();
 | 
			
		||||
      toggleSelection(roomId);
 | 
			
		||||
      try {
 | 
			
		||||
        await client.getRoomById(roomId).leave();
 | 
			
		||||
      } finally {
 | 
			
		||||
        toggleSelection(roomId);
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user