diff --git a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/layout/BroadcastLayoutMsgHdlr.scala b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/layout/BroadcastLayoutMsgHdlr.scala index 23f9578844..369d798c39 100755 --- a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/layout/BroadcastLayoutMsgHdlr.scala +++ b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/layout/BroadcastLayoutMsgHdlr.scala @@ -60,15 +60,17 @@ trait BroadcastLayoutMsgHdlr extends RightsManagementTrait { outGW.send(msgEvent) - val notifyEvent = MsgBuilder.buildNotifyUserInMeetingEvtMsg( - fromUserId, - liveMeeting.props.meetingProp.intId, - "info", - "user", - "app.layoutUpdate.label", - "Notification to when the presenter changes dize of cams", - Vector() - ) - outGW.send(notifyEvent) + if (body.pushLayout) { + val notifyEvent = MsgBuilder.buildNotifyUserInMeetingEvtMsg( + fromUserId, + liveMeeting.props.meetingProp.intId, + "info", + "user", + "app.layoutUpdate.label", + "Notification to when the presenter changes size of cams", + Vector() + ) + outGW.send(notifyEvent) + } } } diff --git a/bigbluebutton-html5/imports/ui/components/layout/service.js b/bigbluebutton-html5/imports/ui/components/layout/service.js index 2f5247dcb5..24c1ad0eaf 100644 --- a/bigbluebutton-html5/imports/ui/components/layout/service.js +++ b/bigbluebutton-html5/imports/ui/components/layout/service.js @@ -1,14 +1,15 @@ import { makeCall } from '/imports/ui/services/api'; +import { debounce } from '/imports/utils/debounce'; const setPushLayout = (pushLayout) => { makeCall('setPushLayout', { pushLayout }); }; const setMeetingLayout = (options) => { - makeCall('changeLayout', options) + makeCall('changeLayout', options); }; export default { setPushLayout, - setMeetingLayout, + setMeetingLayout: debounce(setMeetingLayout, 1000), };