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"?: {
|
"m.relates_to"?: {
|
||||||
rel_type?: "m.replace" | string;
|
rel_type?: "m.replace" | string;
|
||||||
event_id?: string;
|
event_id?: string;
|
||||||
|
"m.in_reply_to"?:{
|
||||||
|
event_id?:string
|
||||||
|
}
|
||||||
};
|
};
|
||||||
"m.new_content"?: {
|
"m.new_content"?: {
|
||||||
msgtype?: MessageType;
|
msgtype?: MessageType;
|
||||||
|
|||||||
@@ -93,13 +93,7 @@ export class RoomEventsManager {
|
|||||||
content: {
|
content: {
|
||||||
body: m.data["m.new_content"]?.body ?? m.data.body,
|
body: m.data["m.new_content"]?.body ?? m.data.body,
|
||||||
msgtype: m.data.msgtype,
|
msgtype: m.data.msgtype,
|
||||||
"m.relates_to":
|
"m.relates_to": m.data["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,
|
|
||||||
url: m.data.url,
|
url: m.data.url,
|
||||||
file: m.data.file,
|
file: m.data.file,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user