Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
NgxFloatUiLooseDirective,
} from 'ngx-float-ui';
import { TranslateService } from '@ngx-translate/core';
import { isSafari } from '../is-safari';

/**
* The `Message` component displays a message with additional information such as sender and date, and enables [interaction with the message (i.e. edit or react)](/chat/docs/sdk/angular/concepts/message-interactions/).
Expand Down Expand Up @@ -98,7 +99,9 @@ export class MessageComponent
};
areMessageOptionsOpen = false;
canDisplayReadStatus = false;
hasTouchSupport = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
hasTouchSupport = isSafari()
? 'ontouchstart' in window || navigator.maxTouchPoints > 0
: window.matchMedia('(any-hover: none)').matches;
private quotedMessageAttachments: Attachment[] | undefined;
private subscriptions: Subscription[] = [];
private isViewInited = false;
Expand Down