8d52dc1b40
Conflicts: bigbluebutton-html5/imports/api/chat/server/methods/sendChatMessagetoServer.js bigbluebutton-html5/imports/api/meetings/server/modifiers/addMeetingToCollection.js bigbluebutton-html5/imports/api/polls/server/methods/publishVoteMessage.js bigbluebutton-html5/imports/api/slides/server/modifiers/clearSlidesCollection.js bigbluebutton-html5/imports/api/users/server/methods/muteUser.js bigbluebutton-html5/imports/api/users/server/methods/setUserPresenter.js bigbluebutton-html5/imports/api/users/server/methods/unmuteUser.js bigbluebutton-html5/imports/api/users/server/methods/userSetEmoji.js bigbluebutton-html5/imports/api/users/server/methods/validateAuthToken.js bigbluebutton-html5/imports/startup/server/eventHandlers.js bigbluebutton-html5/imports/ui/components/app/AppService.js
32 lines
830 B
JavaScript
Executable File
32 lines
830 B
JavaScript
Executable File
import Slides from '/imports/api/slides';
|
|
|
|
export function displayThisSlide(meetingId, newSlideId, slideObject) {
|
|
|
|
// grab the presentationId part of the slideId
|
|
const presentationId = newSlideId.split('/')[0];
|
|
|
|
// change current to false for the old slide
|
|
Slides.update({
|
|
presentationId: presentationId,
|
|
'slide.current': true,
|
|
}, {
|
|
$set: {
|
|
'slide.current': false,
|
|
},
|
|
});
|
|
|
|
//change current to true for the new slide and update its ratios and offsets
|
|
Slides.update({
|
|
presentationId: presentationId,
|
|
'slide.id': newSlideId,
|
|
}, {
|
|
$set: {
|
|
'slide.current': true,
|
|
'slide.height_ratio': slideObject.height_ratio,
|
|
'slide.width_ratio': slideObject.width_ratio,
|
|
'slide.x_offset': slideObject.x_offset,
|
|
'slide.y_offset': slideObject.y_offset,
|
|
},
|
|
});
|
|
};
|