Put stickers behind labs flag.

This commit is contained in:
Richard Lewis 2018-04-02 22:24:46 +01:00
parent 8241afe87d
commit b109c9304c
3 changed files with 13 additions and 1 deletions

View file

@ -329,6 +329,11 @@ export default class MessageComposer extends React.Component {
}
}
let stickerpickerButton;
if (SettingsStore.isFeatureEnabled('feature_sticker_messages')) {
stickerpickerButton = <Stickerpicker key='stickerpicker_controls_button' room={this.props.room} />;
}
controls.push(
<MessageComposerInput
ref={(c) => this.messageComposerInput = c}
@ -340,7 +345,7 @@ export default class MessageComposer extends React.Component {
onContentChanged={this.onInputContentChanged}
onInputStateChanged={this.onInputStateChanged} />,
formattingButton,
<Stickerpicker key='stickerpicker_controls_button' room={this.props.room} />,
stickerpickerButton,
uploadButton,
hangupButton,
callButton,