Add reply support through WebSocket
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-03 19:22:53 +01:00
parent 5088699c15
commit bcdfe87107
2 changed files with 4 additions and 7 deletions

View File

@@ -17,6 +17,9 @@ export interface RoomMessageEvent extends BaseRoomEvent {
"m.relates_to"?: {
rel_type?: "m.replace" | string;
event_id?: string;
"m.in_reply_to"?:{
event_id?:string
}
};
"m.new_content"?: {
msgtype?: MessageType;

View File

@@ -93,13 +93,7 @@ export class RoomEventsManager {
content: {
body: m.data["m.new_content"]?.body ?? m.data.body,
msgtype: m.data.msgtype,
"m.relates_to":
m.data["m.relates_to"] && m.data["m.relates_to"].event_id
? {
event_id: m.data["m.relates_to"].event_id!,
rel_type: m.data["m.relates_to"].rel_type ?? "",
}
: undefined,
"m.relates_to": m.data["m.relates_to"],
url: m.data.url,
file: m.data.file,
},