mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
use isKicked method in preview bar
This commit is contained in:
parent
8c9ceca14f
commit
866b4bb067
@ -101,11 +101,7 @@ module.exports = React.createClass({
|
|||||||
const myMember = this.props.room ? this.props.room.currentState.members[
|
const myMember = this.props.room ? this.props.room.currentState.members[
|
||||||
MatrixClientPeg.get().credentials.userId
|
MatrixClientPeg.get().credentials.userId
|
||||||
] : null;
|
] : null;
|
||||||
const kicked = (
|
const kicked = myMember.isKicked();
|
||||||
myMember &&
|
|
||||||
myMember.membership == 'leave' &&
|
|
||||||
myMember.events.member.getSender() != MatrixClientPeg.get().credentials.userId
|
|
||||||
);
|
|
||||||
const banned = myMember && myMember.membership == 'ban';
|
const banned = myMember && myMember.membership == 'ban';
|
||||||
|
|
||||||
if (this.props.inviterName) {
|
if (this.props.inviterName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user