diff --git a/ts/components/conversation/CallingNotification.tsx b/ts/components/conversation/CallingNotification.tsx index b5977f078201..29d1adbbdff4 100644 --- a/ts/components/conversation/CallingNotification.tsx +++ b/ts/components/conversation/CallingNotification.tsx @@ -72,43 +72,46 @@ export const CallingNotification: React.FC = React.memo( const icon = getCallingIcon(type, direction, status); return ( <> -
- - {getCallingNotificationText(props, i18n)} ·{' '} - - - } - icon={icon} - kind={ - status === DirectCallStatus.Missed || - status === GroupCallStatus.Missed - ? SystemMessageKind.Danger - : SystemMessageKind.Normal - } - /> -
{ - // react-contextmenu's typings are incorrect here - menuTriggerRef.current = ref as unknown as ContextMenuTriggerType; - }} - /> + // react-contextmenu's typings are incorrect here + // eslint-disable-next-line @typescript-eslint/no-explicit-any + ref={menuTriggerRef as any} + disable={props.isSelectMode} + // Immediately hide the context menu on outside click. + // This is a bug in react-contextmenu trying to handle touch events. + holdToDisplay={-1} + > +
+ + {getCallingNotificationText(props, i18n)} ·{' '} + + + } + icon={icon} + kind={ + status === DirectCallStatus.Missed || + status === GroupCallStatus.Missed + ? SystemMessageKind.Danger + : SystemMessageKind.Normal + } + /> +
+