mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Show banned users in room settings
This commit is contained in:
parent
c5d84562ba
commit
e36ca10e6c
@ -124,6 +124,8 @@ module.exports = React.createClass({
|
|||||||
var can_change_levels = false;
|
var can_change_levels = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var banned = this.props.room.getMembersWithMemership("ban");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomSettings">
|
<div className="mx_RoomSettings">
|
||||||
<textarea placeholder="Description" defaultValue={topic} ref="topic"/> <br/>
|
<textarea placeholder="Description" defaultValue={topic} ref="topic"/> <br/>
|
||||||
@ -194,6 +196,17 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Banned users:
|
||||||
|
<div className="mx_RoomSettings_banned">
|
||||||
|
{banned.map(function(member, i) {
|
||||||
|
return (
|
||||||
|
<div key={i}>
|
||||||
|
{member.userId}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user