fix: handle delayed client message availability

Keep self-sent private messages available when their history becomes visible shortly after sending. Preserve account isolation while completing the report.

Refs #528
This commit is contained in:
DrSmoothl committed 2026-10-21 17:25:13 +08:00
1 parent 491b531841
commit bde7f2805d
5 files changed
+132 -8

No files matched your search

+3 -1
View File
@@ -1,4 +1,4 @@
import type { pb, pb_repeated, uint_32, bool } from '@snowluma/proton';
import type { pb, pb_repeated, uint_32, int_32, bool } from '@snowluma/proton';
import type { PushMsgBody } from './message';
// trpc.msg.register_proxy.RegisterProxy.SsoGetC2cMsg — fetch private (c2c)
@@ -15,6 +15,8 @@ export interface SsoGetC2cMsg {
}
export interface SsoGetC2cMsgResponse {
result?: pb<1, int_32>;
errorMessage?: pb<2, string>;
friendUid?: pb<4, string>;
messages?: pb_repeated<7, PushMsgBody>;
}