You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Do not show conf user join/parts
This commit is contained in:
@ -607,6 +607,12 @@ module.exports = React.createClass({
|
|||||||
if (!EventTile.haveTileForEvent(mxEv)) {
|
if (!EventTile.haveTileForEvent(mxEv)) {
|
||||||
continue;
|
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 continuation = false;
|
||||||
var last = false;
|
var last = false;
|
||||||
|
@ -182,7 +182,7 @@ module.exports = React.createClass({
|
|||||||
return m.userId !== me.userId
|
return m.userId !== me.userId
|
||||||
})[0];
|
})[0];
|
||||||
var ConfHandler = self.props.ConferenceHandler;
|
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);
|
// console.log("Hiding conference 1:1 room %s", room.roomId);
|
||||||
shouldShowRoom = false;
|
shouldShowRoom = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user