Skip to content

Commit 14529f2

Browse files
committed
fix: When requesting the pairing code, it also brings the qr code
1 parent 89f40d5 commit 14529f2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* Fixed chatwoot line wrap issue
66
* Solved receive location in chatwoot
7+
* When requesting the pairing code, it also brings the qr code
78

89
# 1.4.3 (2023-07-25 10:51)
910

src/whatsapp/services/whatsapp.service.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,9 @@ export class WAStartupService {
242242

243243
public get qrCode(): wa.QrCode {
244244
this.logger.verbose('Getting qrcode');
245-
if (this.instance.qrcode?.pairingCode) {
246-
return {
247-
pairingCode: this.instance.qrcode?.pairingCode,
248-
};
249-
}
250245

251246
return {
247+
pairingCode: this.instance.qrcode?.pairingCode,
252248
code: this.instance.qrcode?.code,
253249
base64: this.instance.qrcode?.base64,
254250
};

0 commit comments

Comments
 (0)