diff --git a/src/components/views/rooms/RoomPreviewBar.js b/src/components/views/rooms/RoomPreviewBar.js index 4eaa1cea71..3476c47f09 100644 --- a/src/components/views/rooms/RoomPreviewBar.js +++ b/src/components/views/rooms/RoomPreviewBar.js @@ -143,7 +143,7 @@ module.exports = React.createClass({ } else if (kicked || banned) { const verb = kicked ? 'kicked' : 'banned'; const roomName = this._roomNameElement('this room'); - const kicker = MatrixClientPeg.get().getUser( + const kicker = this.props.room.currentState.getMember( myMember.events.member.getSender() ); let reason; @@ -157,7 +157,7 @@ module.exports = React.createClass({ joinBlock = (