Later alterations

This commit is contained in:
André 2024-02-26 15:52:24 -03:00
parent fbf5cfa7d2
commit f255f4b69e
2 changed files with 15 additions and 12 deletions

View File

@ -60,15 +60,17 @@ trait BroadcastLayoutMsgHdlr extends RightsManagementTrait {
outGW.send(msgEvent) outGW.send(msgEvent)
val notifyEvent = MsgBuilder.buildNotifyUserInMeetingEvtMsg( if (body.pushLayout) {
fromUserId, val notifyEvent = MsgBuilder.buildNotifyUserInMeetingEvtMsg(
liveMeeting.props.meetingProp.intId, fromUserId,
"info", liveMeeting.props.meetingProp.intId,
"user", "info",
"app.layoutUpdate.label", "user",
"Notification to when the presenter changes dize of cams", "app.layoutUpdate.label",
Vector() "Notification to when the presenter changes size of cams",
) Vector()
outGW.send(notifyEvent) )
outGW.send(notifyEvent)
}
} }
} }

View File

@ -1,14 +1,15 @@
import { makeCall } from '/imports/ui/services/api'; import { makeCall } from '/imports/ui/services/api';
import { debounce } from '/imports/utils/debounce';
const setPushLayout = (pushLayout) => { const setPushLayout = (pushLayout) => {
makeCall('setPushLayout', { pushLayout }); makeCall('setPushLayout', { pushLayout });
}; };
const setMeetingLayout = (options) => { const setMeetingLayout = (options) => {
makeCall('changeLayout', options) makeCall('changeLayout', options);
}; };
export default { export default {
setPushLayout, setPushLayout,
setMeetingLayout, setMeetingLayout: debounce(setMeetingLayout, 1000),
}; };