feat(web): route DM creation to home instance with federated identity
All DM creation and add-member call sites now use the home api client and pass homeUserId/homeInstance instead of routing to the remote instance. Also updates addMember in the API client to accept AddDmMemberRequest.
This commit is contained in:
@@ -114,7 +114,11 @@ export function AddDmMemberModal() {
|
||||
} else {
|
||||
// Existing group DM → add each friend sequentially
|
||||
for (const friend of selectedFriends) {
|
||||
await api.dm.addMember(dmChannelId, { userId: friend.id });
|
||||
await api.dm.addMember(dmChannelId, {
|
||||
userId: friend.homeInstance ? undefined : friend.id,
|
||||
homeUserId: friend.homeUserId ?? undefined,
|
||||
homeInstance: friend.homeInstance ?? undefined,
|
||||
});
|
||||
}
|
||||
closeModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user