mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
add comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a473971c7b
commit
a8bd4bf858
1 changed files with 1 additions and 0 deletions
|
@ -453,6 +453,7 @@ module.exports = withMatrixClient(React.createClass({
|
|||
const myUserId = this.props.matrixClient.getUserId();
|
||||
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
||||
|
||||
// If we are changing our own PL it can only ever be decreasing, which we cannot reverse.
|
||||
if (myUserId === target) {
|
||||
Modal.createTrackedDialog('Demoting Self', '', QuestionDialog, {
|
||||
title: _t("Warning!"),
|
||||
|
|
Loading…
Reference in a new issue