diff --git a/lib/apps/chat/detail.dart b/lib/apps/chat/detail.dart index 06ab387..0e2e38d 100644 --- a/lib/apps/chat/detail.dart +++ b/lib/apps/chat/detail.dart @@ -55,7 +55,9 @@ class _ChatDetailState extends State { @override void deactivate() { - context.read().clearActivedSession(SessionType.Chat); + if (!isDisplayDesktop(context)) { + context.read().clearActivedSession(SessionType.Chat); + } super.deactivate(); } diff --git a/lib/apps/group_chat/detail.dart b/lib/apps/group_chat/detail.dart index 10dabb7..ec36a1b 100644 --- a/lib/apps/group_chat/detail.dart +++ b/lib/apps/group_chat/detail.dart @@ -60,7 +60,9 @@ class _GroupChatDetailState extends State { @override void deactivate() { - context.read().clearActivedSession(SessionType.Group); + if (!isDisplayDesktop(context)) { + context.read().clearActivedSession(SessionType.Group); + } super.deactivate(); }