Skip to content

Commit

Permalink
fix: sticker type
Browse files Browse the repository at this point in the history
  • Loading branch information
rikumi committed Sep 22, 2024
1 parent 91e89c2 commit 75406a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/clients/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export class MatrixUserBotClient extends EventEmitter implements GenericClient<a
const accessToken = config.matrixAccessToken;
this.bot = new MatrixClient('https://' + homeServer, accessToken, storage);
this.bot.on('room.message', this.handleMessage);
this.bot.on('sticker', this.handleMessage);
this.bot.on('room.event', (roomId, message) => {
if (message.type === 'm.sticker') {
this.handleMessage(roomId, message);
}
});
AutojoinRoomsMixin.setupOnClient(this.bot);
this.fetchBotInfo();

Expand Down

0 comments on commit 75406a4

Please sign in to comment.