diff --git a/src/modules/module.ts b/src/modules/module.ts index c67f2cb..d5760a4 100644 --- a/src/modules/module.ts +++ b/src/modules/module.ts @@ -129,9 +129,9 @@ const registerModules = (client: MatrixClient) => { } if (repliedContent.msgtype === MsgType.Image) { - if (typeof content.url === "string") { + if (typeof repliedContent.url === "string") { const httpUrl = client.mxcUrlToHttp( - content.url, + repliedContent.url, undefined, undefined, undefined,