mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Disable presence controls if there's no presence
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
4e7fd55fb4
commit
28ff0a4ee7
@ -25,6 +25,7 @@ import dispatcher from "../../../dispatcher";
|
||||
import * as ContextualMenu from "../../structures/ContextualMenu";
|
||||
import SettingsStore from "../../../settings/SettingsStore";
|
||||
|
||||
// This is just an avatar with a presence indicator for the user on it.
|
||||
module.exports = React.createClass({
|
||||
displayName: 'MemberPresenceAvatar',
|
||||
|
||||
@ -142,7 +143,8 @@ module.exports = React.createClass({
|
||||
);
|
||||
|
||||
// LABS: Disable presence management functions for now
|
||||
if (!SettingsStore.isFeatureEnabled("feature_presence_management")) {
|
||||
// Also disable the presence information if there's no status information
|
||||
if (!SettingsStore.isFeatureEnabled("feature_presence_management") || !this.state.status) {
|
||||
statusNode = null;
|
||||
onClickFn = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user