25 lines
456 B
TypeScript
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;
|
|
}
|