diff --git a/src/bot.ts b/src/bot.ts index 8ec1ad862021bf821470985705d51370fb3ef3eb..73c5c7d7b2a697fbebc604fa735acaf4eead6eb4 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -167,7 +167,7 @@ export class DiscordBot { profile.displayname = profile.displayname || event.sender; if (profile.avatar_url) { const mxClient = this.bridge.getClientFactory().getClientAs(); - profile.avatar_url = mxClient.mxcUrlToHttp(profile.avatar_url); + profile.avatar_url = mxClient.mxcUrlToHttp(profile.avatar_url, 512, 512, 'scale'); } /* See issue #82 const isMarkdown = (event.content.format === "org.matrix.custom.html");