feat(types): add GroupDmUserIdentity and update CreateGroupDmRequest

Replace flat userIds array with a structured users array of GroupDmUserIdentity
objects, enabling the group DM endpoint to accept federated identity hints
(homeUserId, homeInstance) alongside the local user ID.
This commit is contained in:
Jannis Braun
2026-03-26 23:13:13 +01:00
parent cddfae6b16
commit 255ab657eb
+7 -1
View File
@@ -516,8 +516,14 @@ export interface AddDmMemberRequest {
userId: string; userId: string;
} }
export interface GroupDmUserIdentity {
id: string;
homeUserId?: string | null;
homeInstance?: string | null;
}
export interface CreateGroupDmRequest { export interface CreateGroupDmRequest {
userIds: string[]; users: GroupDmUserIdentity[];
} }
export interface CreateDmMessageRequest { export interface CreateDmMessageRequest {