This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ import { ViewRoomPayload } from "../../dispatcher/payloads/ViewRoomPayload";
41
41
import { Action } from "../../dispatcher/actions" ;
42
42
import { CallStore , CallStoreEvent } from "../../stores/CallStore" ;
43
43
import { calculateRoomVia } from "../../utils/permalinks/Permalinks" ;
44
+ import { isVideoRoom } from "../../utils/video-rooms" ;
44
45
45
46
export enum PlatformCallType {
46
47
ElementCall ,
@@ -113,8 +114,10 @@ export const useRoomCall = (
113
114
const isConnectedToCall = useConnectionState ( groupCall ) === ConnectionState . Connected ;
114
115
const hasGroupCall = groupCall !== null ;
115
116
const hasActiveCallSession = useParticipantCount ( groupCall ) > 0 ;
116
- const isViewingCall = useEventEmitterState ( SdkContextClass . instance . roomViewStore , UPDATE_EVENT , ( ) =>
117
- SdkContextClass . instance . roomViewStore . isViewingCall ( ) ,
117
+ const isViewingCall = useEventEmitterState (
118
+ SdkContextClass . instance . roomViewStore ,
119
+ UPDATE_EVENT ,
120
+ ( ) => SdkContextClass . instance . roomViewStore . isViewingCall ( ) || isVideoRoom ( room ) ,
118
121
) ;
119
122
120
123
// room
You can’t perform that action at this time.
0 commit comments