You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-01 09:58:03 +03:00
This commit is contained in:
@@ -16,6 +16,7 @@ limitations under the License.
|
||||
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import _t from 'counterpart-riot';
|
||||
import sdk from '../../../index';
|
||||
import { getAddressType, inviteMultipleToRoom } from '../../../Invite';
|
||||
import createRoom from '../../../createRoom';
|
||||
@@ -48,11 +49,7 @@ module.exports = React.createClass({
|
||||
|
||||
getDefaultProps: function() {
|
||||
return {
|
||||
title: "Start a chat",
|
||||
description: "Who would you like to communicate with?",
|
||||
value: "",
|
||||
placeholder: "Email, name or matrix ID",
|
||||
button: "Start Chat",
|
||||
focus: true
|
||||
};
|
||||
},
|
||||
@@ -310,6 +307,7 @@ module.exports = React.createClass({
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "Failed to invite",
|
||||
description: ((err && err.message) ? err.message : "Operation failed"),
|
||||
button: _t("OK"),
|
||||
});
|
||||
return null;
|
||||
})
|
||||
@@ -323,6 +321,7 @@ module.exports = React.createClass({
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "Failed to invite user",
|
||||
description: ((err && err.message) ? err.message : "Operation failed"),
|
||||
button: _t("OK"),
|
||||
});
|
||||
return null;
|
||||
})
|
||||
@@ -344,6 +343,7 @@ module.exports = React.createClass({
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "Failed to invite",
|
||||
description: ((err && err.message) ? err.message : "Operation failed"),
|
||||
button: _t("OK"),
|
||||
});
|
||||
return null;
|
||||
})
|
||||
@@ -403,6 +403,7 @@ module.exports = React.createClass({
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "Failed to invite the following users to the " + room.name + " room:",
|
||||
description: errorList.join(", "),
|
||||
button: _t("OK"),
|
||||
});
|
||||
}
|
||||
return addrs;
|
||||
|
||||
Reference in New Issue
Block a user