We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cdc84d commit d21b21fCopy full SHA for d21b21f
src/bot.ts
@@ -1005,6 +1005,20 @@ export class DiscordBot {
1005
formatted_body: result.formattedBody,
1006
msgtype: result.msgtype,
1007
};
1008
+ if (msg.reference) {
1009
+ const storeEvent = await this.store.Get(DbEvent, {discord_id: msg.reference?.messageID})
1010
+ if (storeEvent && storeEvent.Result)
1011
+ {
1012
+ while(storeEvent.Next())
1013
1014
+ sendContent["m.relates_to"] = {
1015
+ "m.in_reply_to": {
1016
+ event_id: storeEvent.MatrixId.split(";")[0]
1017
+ }
1018
+ };
1019
1020
1021
1022
if (editEventId) {
1023
sendContent.body = `* ${result.body}`;
1024
sendContent.formatted_body = `* ${result.formattedBody}`;
0 commit comments