Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider a2c82d2a rédigé par Travis Ralston's avatar Travis Ralston Validation de GitHub
Parcourir les fichiers

Appease the linter

parent 8c6e5119
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -18,6 +18,7 @@ import { Provisioner } from "./provisioner"; ...@@ -18,6 +18,7 @@ import { Provisioner } from "./provisioner";
// messages get delayed from discord. // messages get delayed from discord.
const MSG_PROCESS_DELAY = 750; const MSG_PROCESS_DELAY = 750;
const MIN_PRESENCE_UPDATE_DELAY = 250; 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. // 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"; const MATRIX_ICON_URL = "https://matrix.org/_matrix/media/r0/download/matrix.org/mlxoESwIsTbJrfXyAAogrNxA";
class ChannelLookupResult { class ChannelLookupResult {
...@@ -167,7 +168,7 @@ export class DiscordBot { ...@@ -167,7 +168,7 @@ export class DiscordBot {
profile.displayname = profile.displayname || event.sender; profile.displayname = profile.displayname || event.sender;
if (profile.avatar_url) { if (profile.avatar_url) {
const mxClient = this.bridge.getClientFactory().getClientAs(); 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 /* See issue #82
const isMarkdown = (event.content.format === "org.matrix.custom.html"); const isMarkdown = (event.content.format === "org.matrix.custom.html");
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter