chore: close all overlays on leave chat page (#2473)
This commit is contained in:
parent
d1ac06e7d6
commit
492a0c8cc2
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue