From f255f4b69e3d40119d66f688722622e4721e50c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Mon, 26 Feb 2024 15:52:24 -0300 Subject: [PATCH] Later alterations --- .../apps/layout/BroadcastLayoutMsgHdlr.scala | 22 ++++++++++--------- .../imports/ui/components/layout/service.js | 5 +++-- 2 files changed, 15 insertions(+), 12 deletions(-) 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), };