From 1de2cea724d903892547f48045305f28317f8515 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 23 Aug 2021 03:59:27 +0300 Subject: [PATCH] Message: Fix links system menu on Android (follow-up) --- src/components/middle/message/hooks/useOuterHandlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/middle/message/hooks/useOuterHandlers.ts b/src/components/middle/message/hooks/useOuterHandlers.ts index 914ba733..5643157a 100644 --- a/src/components/middle/message/hooks/useOuterHandlers.ts +++ b/src/components/middle/message/hooks/useOuterHandlers.ts @@ -54,7 +54,7 @@ export default function useOuterHandlers( function handleContextMenu(e: React.MouseEvent) { if (IS_ANDROID) { - if (!(e.target as HTMLElement).matches('a[href]')) { + if ((e.target as HTMLElement).matches('a[href]')) { return; }