mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
@@ -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;
|
||||
|
||||
@@ -463,8 +463,8 @@ class ServerModel with ChangeNotifier {
|
||||
label: client.name,
|
||||
closable: false,
|
||||
onTap: () {
|
||||
if (client.hasUnreadChatMessage.value) {
|
||||
client.hasUnreadChatMessage.value = false;
|
||||
if (client.unreadChatMessageCount.value > 0) {
|
||||
client.unreadChatMessageCount.value = 0;
|
||||
final chatModel = parent.target!.chatModel;
|
||||
chatModel.showChatPage(client.id);
|
||||
}
|
||||
@@ -643,7 +643,7 @@ class Client {
|
||||
bool inVoiceCall = false;
|
||||
bool incomingVoiceCall = false;
|
||||
|
||||
RxBool hasUnreadChatMessage = false.obs;
|
||||
RxInt unreadChatMessageCount = 0.obs;
|
||||
|
||||
Client(this.id, this.authorized, this.isFileTransfer, this.name, this.peerId,
|
||||
this.keyboard, this.clipboard, this.audio);
|
||||
|
||||
Reference in New Issue
Block a user