@ -587,11 +587,20 @@ class ChatListController extends State<ChatList>
) ==
OkCancelResult.ok;
if (!confirmed) return;
// #Pangea
final bool archivedActiveRoom =
selectedRoomIds.contains(Matrix.of(context).activeRoomId);
// Pangea#
await showFutureLoadingDialog(
context: context,
future: () => _archiveSelectedRooms(),
);
setState(() {});
if (archivedActiveRoom) {
VRouter.of(context).to('/rooms');
}
void setStatus() async {
@ -162,7 +162,15 @@ class _SpaceViewState extends State<SpaceView> {
case SpaceChildContextAction.leave:
future: room!.leave,
// future: room!.leave,
future: () async {
await room!.leave();
if (Matrix.of(context).activeRoomId == room.id) {
},
break;
case SpaceChildContextAction.removeFromSpace: