fix self-highlight
parent
d2a731e255
commit
957ef9cdc8
|
@ -111,6 +111,14 @@ module.exports = React.createClass({
|
||||||
shouldHighlight: function() {
|
shouldHighlight: function() {
|
||||||
var actions = MatrixClientPeg.get().getPushActionsForEvent(this.props.mxEvent);
|
var actions = MatrixClientPeg.get().getPushActionsForEvent(this.props.mxEvent);
|
||||||
if (!actions || !actions.tweaks) { return false; }
|
if (!actions || !actions.tweaks) { return false; }
|
||||||
|
|
||||||
|
// don't show self-highlights from another of our clients
|
||||||
|
if (this.props.mxEvent.sender &&
|
||||||
|
this.props.mxEvent.sender.userId === MatrixClientPeg.get().credentials.userId)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return actions.tweaks.highlight;
|
return actions.tweaks.highlight;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue