[FIX] Check videoConf type (#4707)
* add videoconf check * update message type
This commit is contained in:
parent
362df65bbe
commit
21ee25e818
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -222,6 +222,7 @@ export type MessageTypesValues =
|
|||
| 'room-allowed-reacting'
|
||||
| 'room-disallowed-reacting'
|
||||
| 'command'
|
||||
| 'videoconf'
|
||||
| LivechatMessageTypes
|
||||
| TeamMessageTypes
|
||||
| VoipMessageTypesValues
|
||||
|
|
Loading…
Reference in New Issue