From 32e404292bc835bb85b77aeaf88c1a2f9c731c89 Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Fri, 30 Jan 2026 10:31:07 -0300 Subject: [PATCH] Fix Channels WhatsApp module change (#5787) --- src/util/Injected/Utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index 13881da..4fdc45d 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -572,10 +572,10 @@ exports.LoadUtils = () => { if (isChannel) { try { - chat = window.Store.NewsletterCollection.get(chatId); + chat = window.Store.WAWebNewsletterMetadataCollection.get(chatId); if (!chat) { await window.Store.ChannelUtils.loadNewsletterPreviewChat(chatId); - chat = await window.Store.NewsletterCollection.find(chatWid); + chat = await window.Store.WAWebNewsletterMetadataCollection.find(chatWid); } } catch (err) { chat = null; @@ -625,7 +625,7 @@ exports.LoadUtils = () => { }; window.WWebJS.getChannels = async () => { - const channels = window.Store.NewsletterCollection.getModelsArray(); + const channels = window.Store.WAWebNewsletterMetadataCollection.getModelsArray(); const channelPromises = channels?.map((channel) => window.WWebJS.getChatModel(channel, { isChannel: true })); return await Promise.all(channelPromises); };