From a55dac4e60dd3930c74bcb7b65acc2de5fda519c Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Fri, 18 Dec 2020 18:51:21 +0530 Subject: [PATCH] Blocklist bug fix --- src/WAConnection/4.Events.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WAConnection/4.Events.ts b/src/WAConnection/4.Events.ts index 1310b8a..7ce9bb9 100644 --- a/src/WAConnection/4.Events.ts +++ b/src/WAConnection/4.Events.ts @@ -351,6 +351,7 @@ export class WAConnection extends Base { // blocklist updates this.on('CB:Blocklist', json => { + if (!json) return json = json[1] const initial = this.blocklist this.blocklist = json.blocklist