Voice notes mini-player

This commit is contained in:
Alvaro
2023-02-24 16:18:57 -07:00
committed by GitHub
parent b5849f872a
commit 0e655ceeed
45 changed files with 1599 additions and 487 deletions

View File

@@ -100,6 +100,7 @@ export type PropsType = {
toggleSettings: () => void;
toggleSpeakerView: () => void;
isConversationTooBigToRing: boolean;
pauseVoiceNotePlayer: () => void;
};
type ActiveCallManagerPropsType = PropsType & {
@@ -138,6 +139,7 @@ function ActiveCallManager({
toggleScreenRecordingPermissionsDialog,
toggleSettings,
toggleSpeakerView,
pauseVoiceNotePlayer,
}: ActiveCallManagerPropsType): JSX.Element {
const {
conversation,
@@ -157,6 +159,9 @@ function ActiveCallManager({
}, [cancelCall, conversation.id]);
const joinActiveCall = useCallback(() => {
// pause any voice note playback
pauseVoiceNotePlayer();
startCall({
callMode: activeCall.callMode,
conversationId: conversation.id,
@@ -169,6 +174,7 @@ function ActiveCallManager({
conversation.id,
hasLocalAudio,
hasLocalVideo,
pauseVoiceNotePlayer,
]);
const getGroupCallVideoFrameSourceForActiveCall = useCallback(