Add reply support through WebSocket
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user