add comment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-01-05 11:55:43 +00:00
parent a473971c7b
commit a8bd4bf858
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -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!"),