Remove voice messages labs flag

Fixes https://github.com/vector-im/element-web/issues/17151
This commit is contained in:
Travis Ralston 2021-07-21 18:09:35 -06:00
parent b590b1d263
commit 0e3cc6b8f4
3 changed files with 5 additions and 14 deletions

View file

@ -27,8 +27,7 @@ export default class MVoiceOrAudioBody extends React.PureComponent<IBodyProps> {
// MSC2516 is a legacy identifier. See https://github.com/matrix-org/matrix-doc/pull/3245
const isVoiceMessage = !!this.props.mxEvent.getContent()['org.matrix.msc2516.voice']
|| !!this.props.mxEvent.getContent()['org.matrix.msc3245.voice'];
const voiceMessagesEnabled = SettingsStore.getValue("feature_voice_messages");
if (isVoiceMessage && voiceMessagesEnabled) {
if (isVoiceMessage) {
return <MVoiceMessageBody {...this.props} />;
} else {
return <MAudioBody {...this.props} />;