mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 07:20:29 +03:00
temp fix to allow the status to be cleared in some way
This commit is contained in:
parent
d11bdb2f85
commit
a5a8f2814e
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue