Update src/RoomInvite.js

Co-Authored-By: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Travis Ralston 2019-11-27 16:57:44 -07:00 committed by GitHub
parent 275bd33a6c
commit 3b5aa5e9b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,7 +204,7 @@ 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
let description = <div>{errorList.map(e => <div key={e}>{e}</div>)}</div>;
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, {
@ -228,4 +228,3 @@ function _getDirectMessageRooms(addr) {
});
return rooms;
}