Update src/RoomInvite.tsx

Co-authored-by: Florian Duros <florianduros@element.io>
pull/28236/head
Michael Telatynski 2024-10-18 15:17:58 +01:00 committed by GitHub
parent e09e15bb52
commit 4d9b40c49a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export function inviteMultipleToRoom(
progressCallback?: () => void, progressCallback?: () => void,
): Promise<IInviteResult> { ): Promise<IInviteResult> {
const inviter = new MultiInviter(client, roomId, progressCallback); 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 { export function showStartChatInviteDialog(initialText = ""): void {