Add RoomMessageEmote to message callback

This commit is contained in:
git-bruh 2020-12-07 19:50:05 +05:30
parent f758cfc538
commit 058eaa94d1
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -50,7 +50,8 @@ class MatrixClient(nio.AsyncClient):
callbacks = Callbacks(self, self.process_message) callbacks = Callbacks(self, self.process_message)
self.add_event_callback( self.add_event_callback(
callbacks.message_callback, callbacks.message_callback,
(nio.RoomMessageText, nio.RoomMessageMedia)) (nio.RoomMessageText, nio.RoomMessageMedia,
nio.RoomMessageEmote))
self.add_event_callback( self.add_event_callback(
callbacks.redaction_callback, nio.RedactionEvent) callbacks.redaction_callback, nio.RedactionEvent)