Add new toast region for calling button toasts

This commit is contained in:
trevor-signal 2023-10-26 14:26:25 -04:00 committed by GitHub
parent 90eae4b4bf
commit 00d96888e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 129 additions and 80 deletions

View file

@ -35,7 +35,7 @@ import {
import { AvatarColors } from '../types/Colors';
import type { ConversationType } from '../state/ducks/conversations';
import {
useMutedToast,
CallingButtonToastsContainer,
useReconnectingToast,
useScreenSharingStoppedToast,
} from './CallingToastManager';
@ -251,7 +251,6 @@ export function CallScreen({
};
}, [toggleAudio, toggleVideo]);
useMutedToast(hasLocalAudio, i18n);
useReconnectingToast({ activeCall, i18n });
useScreenSharingStoppedToast({ activeCall, i18n });
@ -546,6 +545,13 @@ export function CallScreen({
<div className="CallControls__CallTitle">{conversation.title}</div>
<div className="CallControls__Status">{callStatus}</div>
</div>
<CallingButtonToastsContainer
hasLocalAudio={hasLocalAudio}
outgoingRing={undefined}
i18n={i18n}
/>
<div className="CallControls__ButtonContainer">
<CallingButton
buttonType={presentingButtonType}