|
|
@ -327,10 +327,13 @@ class ChatListController extends State<ChatList> {
|
|
|
|
final client = Matrix.of(context).client;
|
|
|
|
final client = Matrix.of(context).client;
|
|
|
|
while (selectedRoomIds.isNotEmpty) {
|
|
|
|
while (selectedRoomIds.isNotEmpty) {
|
|
|
|
final roomId = selectedRoomIds.first;
|
|
|
|
final roomId = selectedRoomIds.first;
|
|
|
|
|
|
|
|
try {
|
|
|
|
await client.getRoomById(roomId).leave();
|
|
|
|
await client.getRoomById(roomId).leave();
|
|
|
|
|
|
|
|
} finally {
|
|
|
|
toggleSelection(roomId);
|
|
|
|
toggleSelection(roomId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<void> addOrRemoveToSpace() async {
|
|
|
|
Future<void> addOrRemoveToSpace() async {
|
|
|
|
if (activeSpaceId != null) {
|
|
|
|
if (activeSpaceId != null) {
|
|
|
|