From a2c82d2ab18e850ca679524a14001417c5e08fbe Mon Sep 17 00:00:00 2001
From: Travis Ralston <travpc@gmail.com>
Date: Mon, 9 Apr 2018 16:56:37 -0600
Subject: [PATCH] Appease the linter

---
 src/bot.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bot.ts b/src/bot.ts
index 73c5c7d..45bd0e3 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -18,6 +18,7 @@ import { Provisioner } from "./provisioner";
 // messages get delayed from discord.
 const MSG_PROCESS_DELAY = 750;
 const MIN_PRESENCE_UPDATE_DELAY = 250;
+const AVATAR_SIZE = 512; // matrix -> discord
 // TODO: This is bad. We should be serving the icon from the own homeserver.
 const MATRIX_ICON_URL = "https://matrix.org/_matrix/media/r0/download/matrix.org/mlxoESwIsTbJrfXyAAogrNxA";
 class ChannelLookupResult {
@@ -167,7 +168,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, 512, 512, 'scale');
+        profile.avatar_url = mxClient.mxcUrlToHttp(profile.avatar_url, AVATAR_SIZE, AVATAR_SIZE, "scale");
       }
       /* See issue #82
       const isMarkdown = (event.content.format === "org.matrix.custom.html");
-- 
GitLab