From f1ff7812c32ef6867d2237298f12f073a5eba7a2 Mon Sep 17 00:00:00 2001 From: Nir Date: Wed, 11 Mar 2026 14:33:14 +0200 Subject: [PATCH] Replace window.Store in utils.getChats (#119) This fixes #116 by adhering to the newer whatsapp-web.js interface and using 'window.require' instead of 'window.store' Co-authored-by: nir --- 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)