From 21ee25e818920f179ac9a0d47df86afa9ed609a5 Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Thu, 24 Nov 2022 14:24:20 -0300 Subject: [PATCH] [FIX] Check videoConf type (#4707) * add videoconf check * update message type --- app/containers/MessageActions/index.tsx | 2 +- app/containers/message/index.tsx | 2 +- app/definitions/IMessage.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/containers/MessageActions/index.tsx b/app/containers/MessageActions/index.tsx index ac31ac561..925d14613 100644 --- a/app/containers/MessageActions/index.tsx +++ b/app/containers/MessageActions/index.tsx @@ -353,7 +353,7 @@ const MessageActions = React.memo( const getOptions = (message: TAnyMessageModel) => { const options: TActionSheetOptionsItem[] = []; - const videoConfBlock = !!(message?.blocks && message?.blocks[0]?.type === 'video_conf'); + const videoConfBlock = message.t === 'videoconf'; // Quote if (!isReadOnly && !videoConfBlock) { diff --git a/app/containers/message/index.tsx b/app/containers/message/index.tsx index 7c61c37f1..ed2b06b76 100644 --- a/app/containers/message/index.tsx +++ b/app/containers/message/index.tsx @@ -270,7 +270,7 @@ class MessageContainer extends React.Component