cm unread message count

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-07-05 17:01:33 +08:00
parent 769e46d3e6
commit 7c4c69aa75
3 changed files with 20 additions and 6 deletions

View File

@@ -318,7 +318,7 @@ class ChatModel with ChangeNotifier {
final currentSelectedTab =
session.serverModel.tabController.state.value.selectedTabInfo;
if (currentSelectedTab.key != id.toString() && inputNode.hasFocus) {
client.hasUnreadChatMessage.value = true;
client.unreadChatMessageCount.value += 1;
} else {
parent.target?.serverModel.jumpTo(id);
toId = id;