Merge pull request #18513 from ramonlsouza/fix-disabled-reactions

fix: do not display reactions button if reactions are disabled
This commit is contained in:
Anton Georgiev 2023-08-10 15:13:10 -04:00 committed by GitHub
commit a3cf5ce935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,10 @@ const RAISE_HAND_BUTTON_ENABLED = Meteor.settings.public.app.raiseHandActionButt
const RAISE_HAND_BUTTON_CENTERED = Meteor.settings.public.app.raiseHandActionButton.centered;
const isReactionsButtonEnabled = () => {
const USER_REACTIONS_ENABLED = Meteor.settings.public.userReaction.enabled;
const REACTIONS_BUTTON_ENABLED = Meteor.settings.public.app.reactionsButton.enabled;
return getFromUserSettings('enable-reactions-button', REACTIONS_BUTTON_ENABLED);
return USER_REACTIONS_ENABLED && REACTIONS_BUTTON_ENABLED;
};
export default withTracker(() => ({