Start to display messages list

This commit is contained in:
2025-11-25 12:17:48 +01:00
parent 5eab7c3e4f
commit 2adbf146d0
4 changed files with 87 additions and 3 deletions

View File

@@ -12,7 +12,8 @@ export interface MessageReaction {
export interface Message {
event_id: string;
sent: number;
account: string;
time_sent: number;
modified: boolean;
reactions: MessageReaction[];
content: string;
@@ -75,9 +76,10 @@ export class RoomEventsManager {
this.messages.push({
event_id: evt.id,
account: evt.sender,
modified: false,
reactions: [],
sent: evt.time,
time_sent: evt.time,
image: data.content.file?.url,
content: data.content.body,
});