feat: Add chat embeds v1

Youtube and Website metadata embeds
This commit is contained in:
2026-04-04 04:47:04 +02:00
parent 35352923a5
commit 84fa45985a
25 changed files with 759 additions and 24 deletions

View File

@@ -1,5 +1,14 @@
export const DELETED_MESSAGE_CONTENT = '[Message deleted]';
export interface LinkMetadata {
url: string;
title?: string;
description?: string;
imageUrl?: string;
siteName?: string;
failed?: boolean;
}
export interface Message {
id: string;
roomId: string;
@@ -12,6 +21,7 @@ export interface Message {
reactions: Reaction[];
isDeleted: boolean;
replyToId?: string;
linkMetadata?: LinkMetadata[];
}
export interface Reaction {