Do not show conf user join/parts

This commit is contained in:
Kegan Dougal 2015-12-16 11:54:29 +00:00
parent 8aaef34319
commit 09e0d10d32
2 changed files with 7 additions and 1 deletions

View file

@ -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;