Add a feature flag for custom status messages
This commit is contained in:
parent
d20a934642
commit
04c9fff6ce
6 changed files with 30 additions and 4 deletions
|
@ -16,6 +16,8 @@ limitations under the License.
|
|||
|
||||
'use strict';
|
||||
|
||||
import SettingsStore from "../../../settings/SettingsStore";
|
||||
|
||||
const React = require('react');
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
|
@ -84,7 +86,11 @@ module.exports = React.createClass({
|
|||
const name = this._getDisplayName();
|
||||
const active = -1;
|
||||
const presenceState = member.user ? member.user.presence : null;
|
||||
const statusMessage = member.user ? member.user._unstable_statusMessage : null;
|
||||
|
||||
let statusMessage = null;
|
||||
if (member.user && SettingsStore.isFeatureEnabled("feature_custom_status")) {
|
||||
statusMessage = member.user._unstable_statusMessage;
|
||||
}
|
||||
|
||||
const av = (
|
||||
<MemberAvatar member={member} width={36} height={36} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue