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

Merge pull request #120 from Half-Shot/hs/m.sticker-support

Add m.sticker as an expected attachment type
parents 905463a2 0a3c72b6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -93,7 +93,13 @@ export class MatrixEventProcessor { ...@@ -93,7 +93,13 @@ export class MatrixEventProcessor {
} }
public async HandleAttachment(event: any, mxClient: any): Promise<string|Discord.FileOptions> { public async HandleAttachment(event: any, mxClient: any): Promise<string|Discord.FileOptions> {
const hasAttachment = ["m.image", "m.audio", "m.video", "m.file"].indexOf(event.content.msgtype) !== -1; const hasAttachment = [
"m.image",
"m.audio",
"m.video",
"m.file",
"m.sticker",
].indexOf(event.content.msgtype) !== -1;
if (!hasAttachment) { if (!hasAttachment) {
return ""; return "";
} }
......
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