Use flag for calling raise hand

This commit is contained in:
ayumi-signal 2024-06-11 16:45:28 -07:00 committed by GitHub
parent 03406b15fa
commit ad3366fa5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 27 additions and 1 deletions

View file

@ -103,6 +103,7 @@ export type PropsType = {
i18n: LocalizerType;
imageDataCache: React.RefObject<CallingImageDataCache>;
isCallLinkAdmin: boolean;
isGroupCallRaiseHandEnabled: boolean;
me: ConversationType;
openSystemPreferencesAction: () => unknown;
renderReactionPicker: (
@ -194,6 +195,7 @@ export function CallScreen({
i18n,
imageDataCache,
isCallLinkAdmin,
isGroupCallRaiseHandEnabled,
me,
openSystemPreferencesAction,
renderEmojiPicker,
@ -931,7 +933,7 @@ export function CallScreen({
onClick={toggleAudio}
tooltipDirection={TooltipPlacement.Top}
/>
{raiseHandButtonType && (
{isGroupCallRaiseHandEnabled && raiseHandButtonType && (
<CallingButton
buttonType={raiseHandButtonType}
i18n={i18n}