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:
parent
283b1dfb8c
commit
f1ff7812c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue