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

Use a thumbnailed image for sender avatars

Discord uses 128px square images, so 512px should be fine for most cases.
parent 31b17910
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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");
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter