forked from github/cinny
temp fix to allow the status to be cleared in some way
This commit is contained in:
@@ -111,7 +111,7 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||||||
activeClientWidgetApi?.transport.send(`${WIDGET_HANGUP_ACTION}`, {});
|
activeClientWidgetApi?.transport.send(`${WIDGET_HANGUP_ACTION}`, {});
|
||||||
setIsCallActive(false);
|
setIsCallActive(false);
|
||||||
//setActiveCallRoomId(null);
|
//setActiveCallRoomId(null);
|
||||||
//setActiveCallRoomIdState(null);
|
setActiveCallRoomIdState(null);
|
||||||
//logger.debug(`CallContext: Clearing active clientWidgetApi due to hangup.`);
|
//logger.debug(`CallContext: Clearing active clientWidgetApi due to hangup.`);
|
||||||
//setActiveClientWidgetApiState(null);
|
//setActiveClientWidgetApiState(null);
|
||||||
//setClientWidgetApiRoomId(null);
|
//setClientWidgetApiRoomId(null);
|
||||||
@@ -171,6 +171,7 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||||||
);
|
);
|
||||||
setIsPrimaryIframe(true);
|
setIsPrimaryIframe(true);
|
||||||
setIsCallActive(false);
|
setIsCallActive(false);
|
||||||
|
setActiveCallRoomIdState(null);
|
||||||
//hangUp();
|
//hangUp();
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -200,6 +201,7 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
if (isCallActive) {
|
if (isCallActive) {
|
||||||
setIsPrimaryIframe(false);
|
setIsPrimaryIframe(false);
|
||||||
|
setActiveCallRoomIdState(viewedRoomId);
|
||||||
} else {
|
} else {
|
||||||
setIsPrimaryIframe(true);
|
setIsPrimaryIframe(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user