mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Merge pull request #3679 from matrix-org/travis/fix-invite-errors
Fix multi-invite error dialog messaging
This commit is contained in:
commit
ac8afe6dd1
@ -203,10 +203,13 @@ function _showAnyInviteErrors(addrs, room, inviter) {
|
||||
}
|
||||
|
||||
if (errorList.length > 0) {
|
||||
// React 16 doesn't let us use `errorList.join(<br />)` anymore, so this is our solution
|
||||
const description = <div>{errorList.map(e => <div key={e}>{e}</div>)}</div>;
|
||||
|
||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
Modal.createTrackedDialog('Failed to invite the following users to the room', '', ErrorDialog, {
|
||||
title: _t("Failed to invite the following users to the %(roomName)s room:", {roomName: room.name}),
|
||||
description: errorList.join(<br />),
|
||||
description,
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -225,4 +228,3 @@ function _getDirectMessageRooms(addr) {
|
||||
});
|
||||
return rooms;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user