bigbluebutton-Github/bigbluebutton-html5/imports/api/user-reaction/server/eventHandlers.js
Arthurk12 3efdbd9012 feat(reactions): add akka messages to clear all emojis status
Adds two new messages which clear the users emoji statuses. This messages
enables this task to be done in a single call, instead of triggering one
method call for each user.
'ClearAllUsersEmojiCmdMsg' is sent from meteor to akka and updates all the
emoji states in the users model.
'ClearedAllUsersEmojiEvtMsg' is sent from akka to meteor. This triggers the
 mongo collection update.
2023-05-24 10:49:42 -03:00

7 lines
320 B
JavaScript

import RedisPubSub from '/imports/startup/server/redis';
import handleSetUserReaction from './handlers/setUserReaction';
import handleClearUsersEmoji from './handlers/clearUsersEmoji';
RedisPubSub.on('UserEmojiChangedEvtMsg', handleSetUserReaction);
RedisPubSub.on('ClearedAllUsersEmojiEvtMsg', handleClearUsersEmoji);