diff --git a/src/RoomInvite.tsx b/src/RoomInvite.tsx index 86eb31b9d0..ee90b67c38 100644 --- a/src/RoomInvite.tsx +++ b/src/RoomInvite.tsx @@ -42,7 +42,7 @@ export function inviteMultipleToRoom( progressCallback?: () => void, ): Promise { const inviter = new MultiInviter(client, roomId, progressCallback); - return inviter.invite(addresses).then((states) => Promise.resolve({ states, inviter })); + return { states: await inviter.invite(addresses), inviter }; } export function showStartChatInviteDialog(initialText = ""): void {