Browse Source

UI: only mobile clear actived

pull/18/head
Sun 4 years ago
parent
commit
8eb93b6f63
  1. 4
      lib/apps/chat/detail.dart
  2. 4
      lib/apps/group_chat/detail.dart

4
lib/apps/chat/detail.dart

@ -55,7 +55,9 @@ class _ChatDetailState extends State<ChatDetail> { @@ -55,7 +55,9 @@ class _ChatDetailState extends State<ChatDetail> {
@override
void deactivate() {
context.read<AccountProvider>().clearActivedSession(SessionType.Chat);
if (!isDisplayDesktop(context)) {
context.read<AccountProvider>().clearActivedSession(SessionType.Chat);
}
super.deactivate();
}

4
lib/apps/group_chat/detail.dart

@ -60,7 +60,9 @@ class _GroupChatDetailState extends State<GroupChatDetail> { @@ -60,7 +60,9 @@ class _GroupChatDetailState extends State<GroupChatDetail> {
@override
void deactivate() {
context.read<AccountProvider>().clearActivedSession(SessionType.Group);
if (!isDisplayDesktop(context)) {
context.read<AccountProvider>().clearActivedSession(SessionType.Group);
}
super.deactivate();
}

Loading…
Cancel
Save