use isKicked method in preview bar
This commit is contained in:
parent
8c9ceca14f
commit
866b4bb067
1 changed files with 1 additions and 5 deletions
|
@ -101,11 +101,7 @@ module.exports = React.createClass({
|
|||
const myMember = this.props.room ? this.props.room.currentState.members[
|
||||
MatrixClientPeg.get().credentials.userId
|
||||
] : null;
|
||||
const kicked = (
|
||||
myMember &&
|
||||
myMember.membership == 'leave' &&
|
||||
myMember.events.member.getSender() != MatrixClientPeg.get().credentials.userId
|
||||
);
|
||||
const kicked = myMember.isKicked();
|
||||
const banned = myMember && myMember.membership == 'ban';
|
||||
|
||||
if (this.props.inviterName) {
|
||||
|
|
Loading…
Reference in a new issue