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}`, {});
|
||||
setIsCallActive(false);
|
||||
//setActiveCallRoomId(null);
|
||||
//setActiveCallRoomIdState(null);
|
||||
setActiveCallRoomIdState(null);
|
||||
//logger.debug(`CallContext: Clearing active clientWidgetApi due to hangup.`);
|
||||
//setActiveClientWidgetApiState(null);
|
||||
//setClientWidgetApiRoomId(null);
|
||||
|
|
@ -171,6 +171,7 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||
);
|
||||
setIsPrimaryIframe(true);
|
||||
setIsCallActive(false);
|
||||
setActiveCallRoomIdState(null);
|
||||
//hangUp();
|
||||
};
|
||||
|
||||
|
|
@ -200,6 +201,7 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||
ev.preventDefault();
|
||||
if (isCallActive) {
|
||||
setIsPrimaryIframe(false);
|
||||
setActiveCallRoomIdState(viewedRoomId);
|
||||
} else {
|
||||
setIsPrimaryIframe(true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue