Files
Toju/toju-app/src/app/shared-kernel/message.models.ts
2026-03-29 23:55:24 +02:00

25 lines
456 B
TypeScript

export const DELETED_MESSAGE_CONTENT = '[Message deleted]';
export interface Message {
id: string;
roomId: string;
channelId?: string;
senderId: string;
senderName: string;
content: string;
timestamp: number;
editedAt?: number;
reactions: Reaction[];
isDeleted: boolean;
replyToId?: string;
}
export interface Reaction {
id: string;
messageId: string;
oderId: string;
userId: string;
emoji: string;
timestamp: number;
}