Added method to block/unblock user (close #233)

This commit is contained in:
Edgard
2020-12-13 16:16:58 -03:00
committed by Edgard Messias
parent 282fdb1bd3
commit 0bf0ec6490
6 changed files with 96 additions and 3 deletions

View File

@@ -66,6 +66,7 @@ export class WAConnection extends EventEmitter {
lastChatsReceived: Date
chats = new KeyedDB (Utils.waChatKey(false), value => value.jid)
contacts: { [k: string]: WAContact } = {}
blocklist: string[] = [];
/** Data structure of tokens & IDs used to establish one's identiy to WhatsApp Web */
protected authInfo: AuthenticationCredentials = null