fix(federation): include profile snapshots in friend relay events

Replicated user stubs created by resolveOrCreateReplicatedUser had
null avatar/displayName, causing blank profiles in the UI until
page refresh. Friend relay events now carry profile snapshots
(displayName, avatar, avatarColor, banner, bio) so the receiving
instance can hydrate stubs with real data.
This commit is contained in:
Jannis Braun
2026-03-27 01:26:46 +01:00
parent b8a41c4484
commit 699c5a4365
3 changed files with 65 additions and 6 deletions
+10
View File
@@ -782,9 +782,19 @@ export interface FederationGroupPayload {
members: FederationRelayParticipant[];
}
export interface FederationRelayProfileSnapshot {
displayName?: string | null;
avatar?: string | null;
avatarColor?: string | null;
banner?: string | null;
bio?: string | null;
}
export interface FederationFriendshipPayload {
from: FederationRelayParticipant;
to: FederationRelayParticipant;
fromProfile?: FederationRelayProfileSnapshot;
toProfile?: FederationRelayProfileSnapshot;
status?: 'pending' | 'accepted' | 'declined';
createdAt: number;
}