d28b93a586
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
14 lines
479 B
JavaScript
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);
|
|
}
|