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:
DrSmoothl committed 2026-10-31 18:28:05 +08:00
1 parent 299fa85a74
commit fcbb2661d1
2 files changed
+12 -2

No files matched your search

+2 -1
View File
@@ -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}`,
);
}