You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
@@ -453,6 +453,7 @@ module.exports = withMatrixClient(React.createClass({
|
|||||||
const myUserId = this.props.matrixClient.getUserId();
|
const myUserId = this.props.matrixClient.getUserId();
|
||||||
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
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) {
|
if (myUserId === target) {
|
||||||
Modal.createTrackedDialog('Demoting Self', '', QuestionDialog, {
|
Modal.createTrackedDialog('Demoting Self', '', QuestionDialog, {
|
||||||
title: _t("Warning!"),
|
title: _t("Warning!"),
|
||||||
|
|||||||
Reference in New Issue
Block a user