You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Use the correct settings store for presence
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
@@ -22,8 +22,8 @@ import MatrixClientPeg from "../../../MatrixClientPeg";
|
|||||||
import AccessibleButton from '../elements/AccessibleButton';
|
import AccessibleButton from '../elements/AccessibleButton';
|
||||||
import Presence from "../../../Presence";
|
import Presence from "../../../Presence";
|
||||||
import dispatcher from "../../../dispatcher";
|
import dispatcher from "../../../dispatcher";
|
||||||
import UserSettingsStore from "../../../UserSettingsStore";
|
|
||||||
import * as ContextualMenu from "../../structures/ContextualMenu";
|
import * as ContextualMenu from "../../structures/ContextualMenu";
|
||||||
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'MemberPresenceAvatar',
|
displayName: 'MemberPresenceAvatar',
|
||||||
@@ -133,7 +133,7 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
|
|
||||||
// LABS: Disable presence management functions for now
|
// LABS: Disable presence management functions for now
|
||||||
if (!UserSettingsStore.isFeatureEnabled("feature_presence_management")) {
|
if (!SettingsStore.isFeatureEnabled("feature_presence_management")) {
|
||||||
statusNode = null;
|
statusNode = null;
|
||||||
onClickFn = null;
|
onClickFn = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user