Track RT mode once we've retrieved the setting from account data

pull/21833/head
Luke Barnard 2017-08-09 19:00:38 +01:00
parent e121440d05
commit fc6977e68d
1 changed files with 2 additions and 0 deletions

View File

@ -161,6 +161,8 @@ export default class MessageComposerInput extends React.Component {
const isRichtextEnabled = UserSettingsStore.getSyncedSetting('MessageComposerInput.isRichTextEnabled', false);
Analytics.setRichtextMode(isRichtextEnabled);
this.state = {
// whether we're in rich text or markdown mode
isRichtextEnabled,