mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 06:50:28 +03:00
In widget hang up button should be handled correct now
This commit is contained in:
parent
18ea2d2063
commit
9b98083d4a
1 changed files with 4 additions and 17 deletions
|
|
@ -238,23 +238,7 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||
ev.preventDefault();
|
||||
if (ev.detail.widgetId === activeClientWidgetApi?.widget.id) {
|
||||
activeClientWidgetApi?.transport.reply(ev.detail, {});
|
||||
|
||||
/*
|
||||
|
||||
if (viewedRoomId === activeCallRoomId) {
|
||||
if (viewedCallRoomId !== activeCallRoomId) {
|
||||
setViewedCallRoomId(activeCallRoomId);
|
||||
|
||||
setIsPrimaryIframe(!isPrimaryIframe);
|
||||
} else {
|
||||
setIsPrimaryIframe(!isPrimaryIframe);
|
||||
}
|
||||
setViewedClientWidgetApi(viewedClientWidgetApi, viewedClientWidget, viewedCallRoomId);
|
||||
}
|
||||
*/
|
||||
// setActiveClientWidgetApi(null, null, null);
|
||||
// setActiveCallRoomId(null);
|
||||
// setIsCallActive(false);
|
||||
setIsCallActive(false);
|
||||
}
|
||||
logger.debug(
|
||||
`CallContext: Received hangup action from widget in room ${activeCallRoomId}.`,
|
||||
|
|
@ -323,6 +307,9 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||
setViewedClientWidgetApi(null, null, null);
|
||||
});
|
||||
} else {
|
||||
if (viewedClientWidgetApi && viewedCallRoomId) {
|
||||
setViewedAsActive();
|
||||
}
|
||||
setIsCallActive(true);
|
||||
}
|
||||
} else if (viewedCallRoomId !== viewedRoomId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue