Do not show conf user join/parts
This commit is contained in:
parent
8aaef34319
commit
09e0d10d32
2 changed files with 7 additions and 1 deletions
|
@ -607,6 +607,12 @@ module.exports = React.createClass({
|
|||
if (!EventTile.haveTileForEvent(mxEv)) {
|
||||
continue;
|
||||
}
|
||||
if (this.props.ConferenceHandler && mxEv.getType() === "m.room.member") {
|
||||
if (this.props.ConferenceHandler.isConferenceUser(mxEv.getSender()) ||
|
||||
this.props.ConferenceHandler.isConferenceUser(mxEv.getStateKey())) {
|
||||
continue; // suppress conf user join/parts
|
||||
}
|
||||
}
|
||||
|
||||
var continuation = false;
|
||||
var last = false;
|
||||
|
|
|
@ -182,7 +182,7 @@ module.exports = React.createClass({
|
|||
return m.userId !== me.userId
|
||||
})[0];
|
||||
var ConfHandler = self.props.ConferenceHandler;
|
||||
if (ConfHandler && ConfHandler.isConferenceUser(otherMember)) {
|
||||
if (ConfHandler && ConfHandler.isConferenceUser(otherMember.userId)) {
|
||||
// console.log("Hiding conference 1:1 room %s", room.roomId);
|
||||
shouldShowRoom = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue