diff --git a/src/bot.ts b/src/bot.ts index a4572b3b18a92642d5ec51f929531366b3b0976b..fbed6b68c486ef5b604f7a1b7360d05c5b7d70d3 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -1210,6 +1210,9 @@ export class DiscordBot { if (storeEvent && storeEvent.Result) { while (storeEvent.Next()) { const matrixIds = storeEvent.MatrixId.split(";"); + if(!oldMsg.content && oldMsg.attachments.array().length>0){ + newMsg.content = newMsg.content + " " + oldMsg.attachments.array()[0].url; + } await this.OnMessage(newMsg, matrixIds[0]); return; }