fix(bridge): include the reason code for unavailable private message receipts
Show the reported reason when private message receipts are unavailable. Keep the existing warning when the connection supplies no reason.
This commit is contained in:
2 files changed
+12
-2
No files matched your search
@@ -1378,9 +1378,10 @@ export class QqHookClient extends EventEmitter {
|
||||
runtimeLog.debug('Client private-message reporting is available: PID=%d', this.pid);
|
||||
} else {
|
||||
runtimeLog.warn(
|
||||
'Client private-message reporting is unavailable: PID=%d status=%d',
|
||||
'Client private-message reporting is unavailable: PID=%d status=%d%s',
|
||||
this.pid,
|
||||
frame.status,
|
||||
frame.value0 === 0n ? '' : ` reason=${frame.value0}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user