Additional logging for calling service

This commit is contained in:
Fedor Indutny 2022-08-16 16:52:09 -07:00 committed by GitHub
parent 932043c58f
commit 5a3c04d630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 19 deletions

View file

@ -51,7 +51,7 @@ export type PropsType = {
getGroupCallVideoFrameSource: (demuxId: number) => VideoFrameSource;
getPresentingSources: () => void;
groupMembers?: Array<Pick<ConversationType, 'id' | 'firstName' | 'title'>>;
hangUpActiveCall: () => void;
hangUpActiveCall: (reason: string) => void;
i18n: LocalizerType;
joinedAt?: number;
me: ConversationType;
@ -181,6 +181,10 @@ export const CallScreen: React.FC<PropsType> = ({
}
}, [getPresentingSources, presentingSource, setPresenting]);
const hangUp = useCallback(() => {
hangUpActiveCall('button click');
}, [hangUpActiveCall]);
const [controlsHover, setControlsHover] = useState(false);
const onControlsMouseEnter = useCallback(() => {
@ -521,7 +525,7 @@ export const CallScreen: React.FC<PropsType> = ({
i18n={i18n}
onMouseEnter={onControlsMouseEnter}
onMouseLeave={onControlsMouseLeave}
onClick={hangUpActiveCall}
onClick={hangUp}
/>
</div>
<div className="module-ongoing-call__footer__local-preview">