1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-19 20:23:18 +03:00

feature flag for displaying edits as well

This commit is contained in:
Bruno Windels
2019-06-21 18:32:15 +02:00
parent 50315557ba
commit 5fa3f70fb4
3 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ export default function shouldHideEvent(ev) {
if (ev.isRedacted() && !isEnabled('showRedactions')) return true;
// Hide replacement events since they update the original tile
if (ev.isRelation("m.replace")) return true;
if (ev.isRelation("m.replace") && SettingsStore.isFeatureEnabled("feature_message_editing")) return true;
const eventDiff = memberEventDiff(ev);