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)