Fix: layout not propagating
This commit is contained in:
parent
fe8eacb647
commit
7c110e6f76
@ -286,32 +286,19 @@ export default withTracker(() => {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
const currentMeeting = Meetings.findOne({ meetingId: Auth.meetingID },
|
|
||||||
{
|
|
||||||
fields: {
|
|
||||||
randomlySelectedUser: 1,
|
|
||||||
layout: 1,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
const {
|
|
||||||
randomlySelectedUser,
|
|
||||||
} = currentMeeting;
|
|
||||||
|
|
||||||
const meetingLayoutObj = Meetings
|
const meetingLayoutObj = Meetings
|
||||||
.findOne({ meetingId: Auth.meetingID }) || {};
|
.findOne({ meetingId: Auth.meetingID }) || {};
|
||||||
|
|
||||||
const { layout } = meetingLayoutObj;
|
const { layout } = meetingLayoutObj;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
currentLayoutType: meetingLayout,
|
|
||||||
propagateLayout: pushLayoutMeeting,
|
propagateLayout: pushLayoutMeeting,
|
||||||
cameraDockIsResizing: isMeetingLayoutResizing,
|
cameraDockIsResizing: isMeetingLayoutResizing,
|
||||||
cameraDockPlacement: meetingLayoutCameraPosition,
|
cameraDockPlacement: meetingLayoutCameraPosition,
|
||||||
presentationVideoRate: meetingLayoutVideoRate,
|
cameraDockAspectRatio: meetingLayoutVideoRate,
|
||||||
cameraWithFocus: meetingLayoutFocusedCamera,
|
cameraWithFocus: meetingLayoutFocusedCamera,
|
||||||
} = layout;
|
} = layout;
|
||||||
|
const meetingLayout = LAYOUT_TYPE[layout.currentLayoutType];
|
||||||
const meetingLayoutUpdatedAt = new Date(layout.updatedAt).getTime();
|
const meetingLayoutUpdatedAt = new Date(layout.updatedAt).getTime();
|
||||||
|
|
||||||
const meetingPresentationIsOpen = !layout.presentationMinimized;
|
const meetingPresentationIsOpen = !layout.presentationMinimized;
|
||||||
|
Loading…
Reference in New Issue
Block a user