Apply the fix more generically
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
910bdf0802
commit
38bf7b3055
2 changed files with 2 additions and 5 deletions
|
@ -657,8 +657,7 @@ export default class EventTile extends React.Component {
|
|||
// source tile when there's no regular tile for an event and also for
|
||||
// replace relations (which otherwise would display as a confusing
|
||||
// duplicate of the thing they are replacing).
|
||||
const useSource = !tileHandler || this.props.mxEvent.isRelation("m.replace");
|
||||
if (useSource && SettingsStore.getValue("showHiddenEventsInTimeline")) {
|
||||
if (SettingsStore.getValue("showHiddenEventsInTimeline") && !haveTileForEvent(this.props.mxEvent)) {
|
||||
tileHandler = "messages.ViewSourceEvent";
|
||||
// Reuse info message avatar and sender profile styling
|
||||
isInfoMessage = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue