[FIX] Check videoConf type (#4707)

* add videoconf check

* update message type
This commit is contained in:
Gleidson Daniel Silva 2022-11-24 14:24:20 -03:00 committed by Diego Mello
parent 4b17021700
commit 82500ca719
3 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -270,7 +270,7 @@ class MessageContainer extends React.Component<IMessageContainerProps, IMessageC
get isInfo(): string | boolean {
const { item } = this.props;
if (['e2e', 'discussion-created', 'jitsi_call_started'].includes(item.t)) {
if (['e2e', 'discussion-created', 'jitsi_call_started', 'videoconf'].includes(item.t)) {
return false;
}
return item.t;

View File

@ -222,6 +222,7 @@ export type MessageTypesValues =
| 'room-allowed-reacting'
| 'room-disallowed-reacting'
| 'command'
| 'videoconf'
| LivechatMessageTypes
| TeamMessageTypes
| VoipMessageTypesValues