forked from github/cinny
Fix formatting
This commit is contained in:
@@ -153,7 +153,6 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||||||
) => {
|
) => {
|
||||||
if (activeClientWidgetApi && activeClientWidgetApi !== clientWidgetApi) {
|
if (activeClientWidgetApi && activeClientWidgetApi !== clientWidgetApi) {
|
||||||
logger.debug(`CallContext: Cleaning up listeners for previous clientWidgetApi instance.`);
|
logger.debug(`CallContext: Cleaning up listeners for previous clientWidgetApi instance.`);
|
||||||
//activeClientWidgetApi.removeAllListeners();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (roomId && clientWidgetApi) {
|
if (roomId && clientWidgetApi) {
|
||||||
@@ -209,10 +208,7 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||||||
if (typeof nextRoom !== 'string') {
|
if (typeof nextRoom !== 'string') {
|
||||||
if (activeCallRoomId && viewedCallRoomId === activeCallRoomId) {
|
if (activeCallRoomId && viewedCallRoomId === activeCallRoomId) {
|
||||||
setIsPrimaryIframe(!isPrimaryIframe);
|
setIsPrimaryIframe(!isPrimaryIframe);
|
||||||
} else {
|
} else if (viewedCallRoomId !== viewedRoomId) setViewedCallRoomId(activeCallRoomId);
|
||||||
if (viewedCallRoomId !== viewedRoomId) setViewedCallRoomId(activeCallRoomId);
|
|
||||||
}
|
|
||||||
logger.error(`${activeCallRoomId} ${viewedCallRoomId}`);
|
|
||||||
} else if (viewedCallRoomId !== null) {
|
} else if (viewedCallRoomId !== null) {
|
||||||
setIsPrimaryIframe(!isPrimaryIframe);
|
setIsPrimaryIframe(!isPrimaryIframe);
|
||||||
} else if (activeCallRoomId) setViewedCallRoomId(nextRoom);
|
} else if (activeCallRoomId) setViewedCallRoomId(nextRoom);
|
||||||
|
|||||||
Reference in New Issue
Block a user