Show banned users in room settings

pull/1/head
Erik Johnston 2015-07-21 16:07:47 +01:00
parent c5d84562ba
commit e36ca10e6c
1 changed files with 13 additions and 0 deletions

View File

@ -124,6 +124,8 @@ module.exports = React.createClass({
var can_change_levels = false;
}
var banned = this.props.room.getMembersWithMemership("ban");
return (
<div className="mx_RoomSettings">
<textarea placeholder="Description" defaultValue={topic} ref="topic"/> <br/>
@ -194,6 +196,17 @@ module.exports = React.createClass({
);
})}
</div>
Banned users:
<div className="mx_RoomSettings_banned">
{banned.map(function(member, i) {
return (
<div key={i}>
{member.userId}
</div>
);
})}
</div>
</div>
);
}