mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Review comments: Remove stuff which shouldn't have been there
This commit is contained in:
parent
e4e3393232
commit
91c224aaf4
@ -296,7 +296,6 @@ module.exports = React.createClass({
|
|||||||
// member invite (content.third_party_invite.signed.token)
|
// member invite (content.third_party_invite.signed.token)
|
||||||
var room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
var room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
||||||
var EntityTile = sdk.getComponent("rooms.EntityTile");
|
var EntityTile = sdk.getComponent("rooms.EntityTile");
|
||||||
var BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
|
|
||||||
if (room) {
|
if (room) {
|
||||||
room.currentState.getStateEvents("m.room.third_party_invite").forEach(
|
room.currentState.getStateEvents("m.room.third_party_invite").forEach(
|
||||||
function(e) {
|
function(e) {
|
||||||
@ -306,12 +305,9 @@ module.exports = React.createClass({
|
|||||||
if (memberEvent) {
|
if (memberEvent) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var avatarJsx = (
|
|
||||||
<BaseAvatar name={e.getContent().display_name} width={36} height={36} />
|
|
||||||
);
|
|
||||||
memberList.push(
|
memberList.push(
|
||||||
<EntityTile key={e.getStateKey()} ref={e.getStateKey()}
|
<EntityTile key={e.getStateKey()} ref={e.getStateKey()}
|
||||||
name={e.getContent().display_name} avatarJsx={avatarJsx} />
|
name={e.getContent().display_name} />
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -79,14 +79,6 @@ module.exports = React.createClass({
|
|||||||
var av = (
|
var av = (
|
||||||
<MemberAvatar member={member} width={36} height={36} />
|
<MemberAvatar member={member} width={36} height={36} />
|
||||||
);
|
);
|
||||||
var power;
|
|
||||||
var powerLevel = this.props.member.powerLevel;
|
|
||||||
if (powerLevel >= 50 && powerLevel < 99) {
|
|
||||||
power = <img src="img/mod.svg" className="mx_MemberTile_power" width="16" height="17" alt="Mod"/>;
|
|
||||||
}
|
|
||||||
if (powerLevel >= 99) {
|
|
||||||
power = <img src="img/admin.svg" className="mx_MemberTile_power" width="16" height="17" alt="Admin"/>;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (member.user) {
|
if (member.user) {
|
||||||
this.user_last_modified_time = member.user.getLastModifiedTime();
|
this.user_last_modified_time = member.user.getLastModifiedTime();
|
||||||
|
Loading…
Reference in New Issue
Block a user