Merge pull request #3132 from matrix-org/bwindels/edit-full-feature-flag

feature flag for displaying edits as well
This commit is contained in:
Bruno Windels 2019-06-24 21:00:58 +00:00 committed by GitHub
commit a9b5d2095c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View file

@ -829,7 +829,7 @@ module.exports.haveTileForEvent = function(e) {
if (e.isRedacted() && !isMessageEvent(e)) return false;
// No tile for replacement events since they update the original tile
if (e.isRelation("m.replace")) return false;
if (e.isRelation("m.replace") && SettingsStore.isFeatureEnabled("feature_message_editing")) return false;
const handler = getHandlerTile(e);
if (handler === undefined) return false;