desktop cm chat page

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-11-04 21:43:51 +08:00
parent 4272f0194e
commit e7ac6eb0d2
3 changed files with 29 additions and 22 deletions

View File

@@ -407,9 +407,7 @@ class ServerModel with ChangeNotifier {
if (client.hasUnreadChatMessage.value) {
client.hasUnreadChatMessage.value = false;
final chatModel = parent.target!.chatModel;
if (!chatModel.isShowChatPage) {
chatModel.toggleCMChatPage(client.id);
}
chatModel.showChatPage(client.id);
}
},
page: desktop.buildConnectionCard(client)));