fix(logger): pass identity to the second printEvent call site

The previous commit (257686e) widened printEvent's signature to take
IdentityService but only updated the synchronous call at line 97.
The async post-refresh dispatch path (line 127, called when a group
member join arrives without a resolved uin) still used the old
two-arg form, which CI caught as TS2554. Local tsc somehow didn't
flag it on the editing machine.

Both sites now pass this.deps.identity so the readable rendering
applies to both prompt and post-refresh dispatch paths.
This commit is contained in:
DrSmoothl
2026-05-18 12:47:34 +08:00
parent 257686eac6
commit e04a539b26
+1 -1
View File
@@ -124,7 +124,7 @@ export class IncomingPacketPipeline {
}
this.handleSideEffects(event, refreshed);
printEvent(this.eventLog, event);
printEvent(this.eventLog, this.deps.identity, event);
this.emit(event);
}