Skip to content

Commit c44f54a

Browse files
authored
Merge pull request #120 from Half-Shot/hs/m.sticker-support
Add m.sticker as an expected attachment type
2 parents 905463a + 0a3c72b commit c44f54a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/matrixeventprocessor.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,13 @@ export class MatrixEventProcessor {
9393
}
9494

9595
public async HandleAttachment(event: any, mxClient: any): Promise<string|Discord.FileOptions> {
96-
const hasAttachment = ["m.image", "m.audio", "m.video", "m.file"].indexOf(event.content.msgtype) !== -1;
96+
const hasAttachment = [
97+
"m.image",
98+
"m.audio",
99+
"m.video",
100+
"m.file",
101+
"m.sticker",
102+
].indexOf(event.content.msgtype) !== -1;
97103
if (!hasAttachment) {
98104
return "";
99105
}

0 commit comments

Comments
 (0)