You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
make hiding redactions use new pattern
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -252,6 +252,9 @@ module.exports = React.createClass({
|
||||
// Always show highlighted event
|
||||
if (this.props.highlightedEventId === mxEv.getId()) return true;
|
||||
|
||||
// Hide redactions if behaviour enabled
|
||||
if (mxEv.isRedacted() && this.props.hideRedactions) return false;
|
||||
|
||||
const isMemberEvent = mxEv.getType() === "m.room.member" && mxEv.getStateKey() !== undefined;
|
||||
if (!isMemberEvent) {
|
||||
return true; // bail early: all the checks below concern member events only
|
||||
@ -511,8 +514,6 @@ module.exports = React.createClass({
|
||||
continuation = false;
|
||||
}
|
||||
|
||||
if (mxEv.isRedacted() && this.props.hideRedactions) return ret;
|
||||
|
||||
var eventId = mxEv.getId();
|
||||
var highlight = (eventId == this.props.highlightedEventId);
|
||||
|
||||
|
Reference in New Issue
Block a user