Skip to content

Commit

Permalink
Merge pull request #15740 from JoVictorNunes/issue-15712
Browse files Browse the repository at this point in the history
fix: add config to disable emoji sort on click
  • Loading branch information
ramonlsouza committed Sep 29, 2022
2 parents e109586 + 862c9fb commit 045e2ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const messages = defineMessages({

const CHAT_CONFIG = Meteor.settings.public.chat;
const AUTO_CONVERT_EMOJI = Meteor.settings.public.chat.autoConvertEmoji;
const ENABLE_EMOJI_PICKER = Meteor.settings.public.chat.enableEmojiPicker;
const ENABLE_EMOJI_PICKER = Meteor.settings.public.chat.emojiPicker.enable;

class MessageForm extends PureComponent {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Picker } from 'emoji-mart';
import 'emoji-mart/css/emoji-mart.css';

const DISABLE_EMOJIS = Meteor.settings.public.chat.disableEmojis;
const FREQUENT_SORT_ON_CLICK = Meteor.settings.public.chat.emojiPicker.frequentEmojiSortOnClick;

const propTypes = {
intl: PropTypes.shape({
Expand Down Expand Up @@ -66,7 +67,7 @@ const EmojiPicker = (props) => {
<Picker
emoji=""
onSelect={(emojiObject, event) => onEmojiSelect(emojiObject, event)}
enableFrequentEmojiSort
enableFrequentEmojiSort={FREQUENT_SORT_ON_CLICK}
native
title=""
emojiSize={24}
Expand Down
4 changes: 3 additions & 1 deletion bigbluebutton-html5/private/config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,9 @@ public:
enabled: true
moderatorChatEmphasized: true
autoConvertEmoji: true
enableEmojiPicker: false
emojiPicker:
enable: false
frequentEmojiSortOnClick: false
# e.g.: disableEmojis: ['1F595','1F922']
disableEmojis: []
notes:
Expand Down
2 changes: 1 addition & 1 deletion bigbluebutton-tests/playwright/core/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function generateSettingsData(page) {
chatEnabled: settingsData.chat.enabled,
publicChatOptionsEnabled: settingsData.chat.enableSaveAndCopyPublicChat,
maxMessageLength: settingsData.chat.max_message_length,
emojiPickerEnabled: settingsData.chat.enableEmojiPicker,
emojiPickerEnabled: settingsData.chat.emojiPicker.enable,
autoConvertEmojiEnabled: settingsData.chat.autoConvertEmoji,
// Polling
pollEnabled: settingsData.poll.enabled,
Expand Down

0 comments on commit 045e2ec

Please sign in to comment.