From 6b033d91ff79e7d5d58cba4e18e4fdd43b7dd892 Mon Sep 17 00:00:00 2001 From: naor Date: Mon, 20 Jul 2026 23:31:59 +0300 Subject: [PATCH] fix: getChat, getChats & getChatModal (clean solution) Squashed from 3 commits: initial fix, merge commit, and lint fix. --- src/util/Injected/Utils.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index dfa30a579de..323fe9b659a 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -984,13 +984,11 @@ exports.LoadUtils = () => { const lastMessage = chat.lastReceivedKey ? window .require('WAWebCollections') - .Msg.get(chat.lastReceivedKey._serialized) || + .Msg.get(chat.lastReceivedKey.$1) || ( await window .require('WAWebCollections') - .Msg.getMessagesById([ - chat.lastReceivedKey._serialized, - ]) + .Msg.getMessagesById([chat.lastReceivedKey.$1]) )?.messages?.[0] : null; lastMessage &&