From c473b13501b7e1205727a689e7385a7631a86b36 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Mon, 9 Dec 2024 07:25:53 +0800 Subject: [PATCH] no message --- app/Models/WebSocketDialogMsgRead.php | 4 +++- electron/package.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/WebSocketDialogMsgRead.php b/app/Models/WebSocketDialogMsgRead.php index 345d1ec15..4a24866c1 100644 --- a/app/Models/WebSocketDialogMsgRead.php +++ b/app/Models/WebSocketDialogMsgRead.php @@ -91,7 +91,9 @@ public static function onlyMarkRead($list) } } foreach ($dialogMsg as $item) { - $item['dialogMsg']?->generatePercentage($item['readNum']); + if ($item['dialogMsg']) { + $item['dialogMsg']->increment('read', $item['readNum']); + } } } } diff --git a/electron/package.json b/electron/package.json index 42a0434e2..bd6b28c9c 100755 --- a/electron/package.json +++ b/electron/package.json @@ -36,6 +36,7 @@ "electron-builder": "^25.1.8", "electron-notarize": "^1.2.2", "form-data": "^4.0.1", + "inquirer": "^8.2.0", "ora": "^4.1.1" }, "dependencies": {