Added Option to skip QR Logging in Terminal (#552)

QR logging can now be disabled using connect option.
This commit is contained in:
bhavya32
2021-06-27 19:02:47 +05:30
committed by GitHub
parent 3607357152
commit 0dea009f9c
4 changed files with 11 additions and 2 deletions

View File

@@ -387,7 +387,11 @@ export class WAConnection extends Base {
this.logger.warn('recieved read update for unknown chat ' + jid)
}
})
this.on ('qr', qr => QR.generate(qr, { small: true }))
this.on('qr', qr => {
if (this.connectOptions.logQR) {
QR.generate(qr, { small: true })
}
});
// blocklist updates
this.on('CB:Blocklist', json => {