close chat page bofore remote page
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
3ec13714c9
commit
b58fbb26ba
@ -526,6 +526,7 @@ String formatDurationToTime(Duration duration) {
|
||||
|
||||
closeConnection({String? id}) {
|
||||
if (isAndroid || isIOS) {
|
||||
gFFI.chatModel.hideChatOverlay();
|
||||
Navigator.popUntil(globalKey.currentContext!, ModalRoute.withName("/"));
|
||||
} else {
|
||||
final controller = Get.find<DesktopTabController>();
|
||||
|
@ -185,6 +185,13 @@ class ChatModel with ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
hideChatOverlay() {
|
||||
if (!_isChatOverlayHide()) {
|
||||
hideChatIconOverlay();
|
||||
hideChatWindowOverlay();
|
||||
}
|
||||
}
|
||||
|
||||
showChatPage(int id) async {
|
||||
if (isConnManager) {
|
||||
if (!_isShowCMChatPage) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user