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

onboarding
Sorunome 4 years ago
parent 41f2d23951
commit 147726dbe3

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