mirror of https://github.com/vector-im/riot-web
Update src/RoomInvite.tsx
Co-authored-by: Florian Duros <florianduros@element.io>pull/28236/head
parent
e09e15bb52
commit
4d9b40c49a
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue