From bd08b69c87f2457ef0ccc9954427b9b50449beb7 Mon Sep 17 00:00:00 2001 From: devlikeapro <155617407+devlikepro@users.noreply.github.com> Date: Sun, 20 Jul 2025 15:07:15 +0700 Subject: [PATCH] Fix send seen on chat - Stream markAvailable (#3663) fix #3540 --- src/util/Injected/Store.js | 1 + src/util/Injected/Utils.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/util/Injected/Store.js b/src/util/Injected/Store.js index 48e5916..8455e6e 100644 --- a/src/util/Injected/Store.js +++ b/src/util/Injected/Store.js @@ -99,6 +99,7 @@ exports.ExposeStore = () => { window.Store.AddonReactionTable = window.require('WAWebAddonReactionTableMode').reactionTableMode; window.Store.ChatGetters = window.require('WAWebChatGetters'); window.Store.UploadUtils = window.require('WAWebUploadManager'); + window.Store.WAWebStreamModel = window.require('WAWebStreamModel'); window.Store.Settings = { ...window.require('WAWebUserPrefsGeneral'), diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index 1bf5704..ef0d267 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -17,6 +17,7 @@ exports.LoadUtils = () => { window.WWebJS.sendSeen = async (chatId) => { const chat = await window.WWebJS.getChat(chatId, { getAsModel: false }); if (chat) { + window.Store.WAWebStreamModel.Stream.markAvailable(); await window.Store.SendSeen.sendSeen(chat); return true; }