bigbluebutton-Github/bigbluebutton-html5/imports/api/user-reaction/server/methods/setUserReaction.js
Max Franke d28b93a586 feat(reactions): add user reaction
add user-reaction collection
add emoji picker for user reaction in the user list
add options to enable/disable user-reaction
add a way to pass style to emoji-picker component
2023-04-27 11:54:11 -03:00

14 lines
479 B
JavaScript

import { check } from 'meteor/check';
import { extractCredentials } from '/imports/api/common/server/helpers';
import addUserReaction from '/imports/api/user-reaction/server/modifiers/addUserReaction';
export default function setUserReaction(reaction) {
check(reaction, String);
const { meetingId, requesterUserId } = extractCredentials(this.userId);
check(meetingId, String);
check(requesterUserId, String);
addUserReaction(meetingId, requesterUserId, reaction);
}