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 <nir@severin>
This commit is contained in:
Nir 2026-03-11 14:33:14 +02:00 • committed by GitHub
commit f1ff7812c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)