Peek group calls when opening conversations and leaving calls

This commit is contained in:
Evan Hahn 2022-02-08 13:18:51 -06:00 committed by GitHub
parent 5ce26eb91a
commit f5a4cd9ce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 202 additions and 373 deletions

View file

@ -7,7 +7,6 @@ import { noop } from 'lodash';
import classNames from 'classnames';
import type { VideoFrameSource } from 'ringrtc';
import type {
HangUpType,
SetLocalAudioType,
SetLocalPreviewType,
SetLocalVideoType,
@ -47,7 +46,7 @@ export type PropsType = {
getGroupCallVideoFrameSource: (demuxId: number) => VideoFrameSource;
getPresentingSources: () => void;
groupMembers?: Array<Pick<ConversationType, 'id' | 'firstName' | 'title'>>;
hangUp: (_: HangUpType) => void;
hangUpActiveCall: () => void;
i18n: LocalizerType;
joinedAt?: number;
me: {
@ -115,7 +114,7 @@ export const CallScreen: React.FC<PropsType> = ({
getGroupCallVideoFrameSource,
getPresentingSources,
groupMembers,
hangUp,
hangUpActiveCall,
i18n,
joinedAt,
me,
@ -510,9 +509,7 @@ export const CallScreen: React.FC<PropsType> = ({
i18n={i18n}
onMouseEnter={onControlsMouseEnter}
onMouseLeave={onControlsMouseLeave}
onClick={() => {
hangUp({ conversationId: conversation.id });
}}
onClick={hangUpActiveCall}
/>
</div>
<div