Basic call link join support

This commit is contained in:
ayumi-signal 2024-02-22 13:19:50 -08:00 committed by GitHub
parent 2bfb6e7481
commit 96b3413feb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 2438 additions and 509 deletions

View file

@ -42,7 +42,7 @@ import type {
import type { PropsType as ProfileChangeNotificationPropsType } from '../../components/conversation/ProfileChangeNotification';
import type { QuotedAttachmentType } from '../../components/conversation/Quote';
import { getDomain, isStickerPack } from '../../types/LinkPreview';
import { getDomain, isCallLink, isStickerPack } from '../../types/LinkPreview';
import type {
AciString,
PniString,
@ -383,6 +383,7 @@ const getPreviewsForMessage = ({
return previews.map(preview => ({
...preview,
isStickerPack: isStickerPack(preview.url),
isCallLink: isCallLink(preview.url),
domain: getDomain(preview.url),
image: preview.image ? getPropsForAttachment(preview.image) : undefined,
}));