Skip to content
Extraits de code Groupes Projets
Valider 0a3c72b6 rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

Add m.sticker as an expected attachment type

parent 97bda229
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -92,7 +92,13 @@ export class MatrixEventProcessor {
}
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) {
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