feat(shared): group_metadata_update event + extended FederationGroupPayload (with safe defaults at producers)

This commit is contained in:
Jannis Braun
2026-05-10 18:00:07 +02:00
parent f2542fd849
commit 2afe230de0
2 changed files with 26 additions and 1 deletions
+6
View File
@@ -940,6 +940,9 @@ export async function dmRoutes(app: FastifyInstance): Promise<void> {
homeInstance: callerUser?.homeInstance || domainOrigin,
},
members: allParticipants,
name: null, // safe default — Phase 4 task 4.3 replaces with channel.name
icon: null, // safe default — Phase 4 task 4.3 replaces with normalized URL
metadataUpdatedAt: 0, // safe default — Phase 4 task 4.3 replaces with channel.metadataUpdatedAt
},
};
@@ -1233,6 +1236,9 @@ export async function dmRoutes(app: FastifyInstance): Promise<void> {
homeInstance: dmChannel.ownerHomeInstance || domainOrigin,
},
members: allParticipants,
name: null, // safe default — Phase 4 task 4.3 replaces with channel.name
icon: null, // safe default — Phase 4 task 4.3 replaces with normalized URL
metadataUpdatedAt: 0, // safe default — Phase 4 task 4.3 replaces with channel.metadataUpdatedAt
},
};