From 91c224aaf40026ab6b6e59459620edba71e8a831 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 20 Jan 2016 13:41:03 +0000 Subject: [PATCH] Review comments: Remove stuff which shouldn't have been there --- src/components/views/rooms/MemberList.js | 6 +----- src/components/views/rooms/MemberTile.js | 8 -------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/components/views/rooms/MemberList.js b/src/components/views/rooms/MemberList.js index bf96b51604..4c84b00e70 100644 --- a/src/components/views/rooms/MemberList.js +++ b/src/components/views/rooms/MemberList.js @@ -296,7 +296,6 @@ module.exports = React.createClass({ // member invite (content.third_party_invite.signed.token) var room = MatrixClientPeg.get().getRoom(this.props.roomId); var EntityTile = sdk.getComponent("rooms.EntityTile"); - var BaseAvatar = sdk.getComponent("avatars.BaseAvatar"); if (room) { room.currentState.getStateEvents("m.room.third_party_invite").forEach( function(e) { @@ -306,12 +305,9 @@ module.exports = React.createClass({ if (memberEvent) { return; } - var avatarJsx = ( - - ); memberList.push( + name={e.getContent().display_name} /> ) }) } diff --git a/src/components/views/rooms/MemberTile.js b/src/components/views/rooms/MemberTile.js index 9136e848f1..d5c124ad21 100644 --- a/src/components/views/rooms/MemberTile.js +++ b/src/components/views/rooms/MemberTile.js @@ -79,14 +79,6 @@ module.exports = React.createClass({ var av = ( ); - var power; - var powerLevel = this.props.member.powerLevel; - if (powerLevel >= 50 && powerLevel < 99) { - power = Mod; - } - if (powerLevel >= 99) { - power = Admin; - } if (member.user) { this.user_last_modified_time = member.user.getLastModifiedTime();