Update src/RoomInvite.tsx

Co-authored-by: Florian Duros <florianduros@element.io>
This commit is contained in:
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

View file

@ -42,7 +42,7 @@ export function inviteMultipleToRoom(
progressCallback?: () => void,
): Promise<IInviteResult> {
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 {