4db28a2824
* Revert "Delete bbb-icons-ori.woff" This reverts commit84937a0d07
. * Revert "Add files via upload" This reverts commit391434445a
. * Revert "Delete bbb-icons.woff" This reverts commit7c245c666d
. * Revert "Add files via upload" This reverts commit6f8c764c4b
. * Revert "Delete tmp.woff" This reverts commit5141e65359
. * Revert "Add files via upload" This reverts commitc8f7b17b04
. * Revert "Create tmp.woff" This reverts commit73c4506594
. * Revert "Delete bbb-icons.woff" This reverts commit9d01d58527
. * Revert "Revert "Delete bbb-icons.woff"" This reverts commitd221d290cd
. * Revert "Revert "Revert "Delete bbb-icons.woff""" This reverts commitc415ff02d1
. * Revert "Revert "Delete bbb-icons.woff"" This reverts commitd221d290cd
. * Revert "Revert "Create tmp.woff"" This reverts commit267dc412d5
. * Revert "Delete bbb-icons-ori.woff" This reverts commit84937a0d07
. * Revert "Delete bbb-icons.woff" This reverts commit7c245c666d
. * Revert "Add files via upload" This reverts commit6f8c764c4b
. * Revert "Add files via upload" This reverts commitc8f7b17b04
. * Revert "Create tmp.woff" This reverts commit73c4506594
. * Revert "Delete bbb-icons.woff" This reverts commit9d01d58527
. * Revert "Revert "Delete bbb-icons.woff"" This reverts commit64a48f2bd6
. * Revert "Revert "Revert "Delete bbb-icons.woff""" This reverts commit9d1b4a068a
. * Revert "Revert "Revert "Revert "Delete bbb-icons.woff"""" This reverts commitb60491d933
. * Revert "Revert "Revert "Revert "Revert "Delete bbb-icons.woff""""" This reverts commit16e357091d
. * Revert "Revert "Revert "Revert "Revert "Revert "Delete bbb-icons.woff"""""" This reverts commite0b70f2055
. * Revert "Revert "Revert "Revert "Revert "Revert "Revert "Delete bbb-icons.woff""""""" This reverts commit7b1bde97ed
. * Update UsersMgs.scala * Update selectRandomViewer.js * Update clearRandomlySelectedUser.js * Update addMeeting.js * Update updateRandomViewer.js * Update component.jsx * Update container.jsx * Update component.jsx * Update container.jsx * Update styles.scss * Update en.json * Update SelectRandomViewerReqMsgHdlr.scala * code simplification * in case only one person to be selected * Update en.json * Create en.json * Update en.json * Update component.jsx * Update styles.scss * Update en.json * Update updateRandomViewer.js Fix a typo * Update component.jsx When the presenter is moved to a viewer, in the modal of ex-presenter "somebody is selected" should be displayed. Before this modification, "somebody is the only viewer" was displayed. * add a comment explaining why a condition is needed. * Update en.json * Update en.json * revert (due to the rename UserMgs -> UserMsgs) * Update UsersMsgs.scala
15 lines
426 B
JavaScript
15 lines
426 B
JavaScript
import { check } from 'meteor/check';
|
|
import updateRandomViewer from '../modifiers/updateRandomViewer';
|
|
|
|
export default function randomlySelectedUser({ header, body }) {
|
|
const { userIds, choice, requestedBy } = body;
|
|
const { meetingId } = header;
|
|
|
|
check(meetingId, String);
|
|
check(requestedBy, String);
|
|
check(userIds, Array);
|
|
check(choice, Number);
|
|
|
|
updateRandomViewer(meetingId, userIds, choice, requestedBy);
|
|
}
|