mirror of https://github.com/vector-im/riot-web
Merge pull request #3246 from vector-im/dbkr/allow_forget_ban
Allow forgetting rooms you're banned frompull/3250/head
commit
e8d5e8c8ab
|
@ -16,13 +16,15 @@ limitations under the License.
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var q = require("q");
|
import q from 'q';
|
||||||
var React = require('react');
|
import React from 'react';
|
||||||
var classNames = require('classnames');
|
import classNames from 'classnames';
|
||||||
var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg');
|
import sdk from 'matrix-react-sdk';
|
||||||
var dis = require('matrix-react-sdk/lib/dispatcher');
|
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
|
||||||
var DMRoomMap = require('matrix-react-sdk/lib/utils/DMRoomMap');
|
import dis from 'matrix-react-sdk/lib/dispatcher';
|
||||||
var Rooms = require('matrix-react-sdk/lib/Rooms');
|
import DMRoomMap from 'matrix-react-sdk/lib/utils/DMRoomMap';
|
||||||
|
import Rooms from 'matrix-react-sdk/lib/Rooms';
|
||||||
|
import Modal from 'matrix-react-sdk/lib/Modal';
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'RoomTagContextMenu',
|
displayName: 'RoomTagContextMenu',
|
||||||
|
@ -214,7 +216,7 @@ module.exports = React.createClass({
|
||||||
'mx_RoomTagContextMenu_fieldDisabled': false,
|
'mx_RoomTagContextMenu_fieldDisabled': false,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (myMember && myMember.membership === "leave") {
|
if (myMember && (myMember.membership === "leave" || myMember.membership === "ban")) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className={ leaveClasses } onClick={ this._onClickForget } >
|
<div className={ leaveClasses } onClick={ this._onClickForget } >
|
||||||
|
|
Loading…
Reference in New Issue