chore: close all overlays on leave chat page (#2473)

This commit is contained in:
ggurdin 2025-04-17 10:03:06 -04:00 committed by GitHub
parent d1ac06e7d6
commit 492a0c8cc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -660,7 +660,7 @@ class ChatController extends State<ChatPageWithRoom>
//#Pangea
choreographer.stateStream.close();
choreographer.dispose();
MatrixState.pAnyState.closeOverlay();
MatrixState.pAnyState.closeAllOverlays();
showToolbarStream.close();
stopAudioStream.close();
hideTextController.dispose();
@ -679,7 +679,10 @@ class ChatController extends State<ChatPageWithRoom>
_router.routeInformationProvider.addListener(_onRouteChanged);
}
void _onRouteChanged() => stopAudioStream.add(null);
void _onRouteChanged() {
stopAudioStream.add(null);
MatrixState.pAnyState.closeAllOverlays();
}
// TextEditingController sendController = TextEditingController();
PangeaTextController get sendController => choreographer.textController;