From b5661b69aa63c90cbdc76236aaf4438b1514ef77 Mon Sep 17 00:00:00 2001 From: nir Date: Wed, 11 Mar 2026 09:35:30 +0000 Subject: [PATCH] Replace window.Store in utils.getChats This fixes #116 by adhering to the newer whatsapp-web.js interface and using 'window.require' instead of 'window.store' --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 3100c07..ebea4e0 100644 --- a/src/utils.js +++ b/src/utils.js @@ -140,7 +140,7 @@ const patchWWebLibrary = async (client) => { return true } - const allChats = window.Store.Chat.getModelsArray() + const allChats = window.require('WAWebCollections').Chat.getModelsArray() const filteredChats = allChats.filter(chatFilter)