mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added Option to skip QR Logging in Terminal (#552)
QR logging can now be disabled using connect option.
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user