mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 23:30:28 +03:00
Properly declare new hangup method sig
This commit is contained in:
parent
f3c0aebda2
commit
22903c9340
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ interface CallContextState {
|
|||
setActiveCallRoomId: (roomId: string | null) => void;
|
||||
viewedCallRoomId: string | null;
|
||||
setViewedCallRoomId: (roomId: string | null) => void;
|
||||
hangUp: () => void;
|
||||
hangUp: (room: string) => void;
|
||||
activeClientWidgetApi: ClientWidgetApi | null;
|
||||
activeClientWidget: SmallWidget | null;
|
||||
registerActiveClientWidgetApi: (
|
||||
|
|
@ -204,7 +204,7 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||
);
|
||||
|
||||
const hangUp = useCallback(
|
||||
(nextRoom) => {
|
||||
(nextRoom: string) => {
|
||||
setIsCallActive(false);
|
||||
if (typeof nextRoom !== 'string') {
|
||||
if (viewedCallRoomId === activeCallRoomId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue