From 4d9b40c49ae85c7c7fd9f71e9a84e9b860142dac Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 18 Oct 2024 15:17:58 +0100 Subject: [PATCH] Update src/RoomInvite.tsx Co-authored-by: Florian Duros --- src/RoomInvite.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {