Start to display messages list
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user