Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

feature flag for displaying edits as well #3132

Merged
merged 3 commits into from
Jun 24, 2019

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels requested a review from a team June 21, 2019 16:51
@@ -576,6 +576,7 @@ module.exports = React.createClass({
const scrollToken = mxEv.status ? undefined : eventId;

const readReceipts = this._readReceiptsByEvent[eventId];
const editingEnabled = SettingsStore.isFeatureEnabled("feature_message_editing");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ftr the SettingsStore is slow, so deferring as much of the call as possible is ideal. For features it's usually pretty quick (because the flag is highly cachable), but just a head's up.

@bwindels bwindels requested a review from turt2live June 24, 2019 14:54
@bwindels bwindels merged commit a9b5d20 into develop Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fully feature-flag editing
2 participants