mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
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
This commit is contained in:
commit
1c4b0bdba6
@ -327,10 +327,13 @@ class ChatListController extends State<ChatList> {
|
||||
final client = Matrix.of(context).client;
|
||||
while (selectedRoomIds.isNotEmpty) {
|
||||
final roomId = selectedRoomIds.first;
|
||||
try {
|
||||
await client.getRoomById(roomId).leave();
|
||||
} finally {
|
||||
toggleSelection(roomId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> addOrRemoveToSpace() async {
|
||||
if (activeSpaceId != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user