Merge branch 'soru/missing-null-check' into 'main'

fix: Make sure that you deselect rooms on leaving, even if that fails

See merge request famedly/fluffychat!504
onboarding
Krille Fear 4 years ago
commit adec1503f8

@ -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…
Cancel
Save