From dd9df4083accf50c2a69d6942a205465f022dc97 Mon Sep 17 00:00:00 2001 From: Filipe Date: Mon, 19 Jan 2026 10:54:31 -0300 Subject: [PATCH] fix: use markSeen instead of sendSeen to fix markedUnread error (#5719) Fixes TypeError: Cannot read properties of undefined (reading 'markedUnread') that occurs in newer WhatsApp Web versions. The sendSeen method was removed/changed in recent WhatsApp Web updates. Using markSeen resolves the issue. Fixes #5718 Co-authored-by: cp1797 Co-authored-by: eltonnicolau Co-authored-by: telmedola Co-authored-by: qw271862028 Co-authored-by: duola8789 --- src/util/Injected/Utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index af2a39a..9bb2e4b 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -13,7 +13,7 @@ exports.LoadUtils = () => { const chat = await window.WWebJS.getChat(chatId, { getAsModel: false }); if (chat) { window.Store.WAWebStreamModel.Stream.markAvailable(); - await window.Store.SendSeen.sendSeen(chat); + await window.Store.SendSeen.markSeen(chat); window.Store.WAWebStreamModel.Stream.markUnavailable(); return true; }