start support for redaction events

This commit is contained in:
HgO 2022-07-10 14:53:19 +02:00
parent e1d1b7aba5
commit 69b5aa20b1

View file

@ -239,7 +239,7 @@ class Callbacks:
reacted_to_event = await self.client.room_get_event( reacted_to_event = await self.client.room_get_event(
room.room_id, reacted_to_event_id room.room_id, reacted_to_event_id
) )
print(reacted_to_event.source) print(reacted_to_event.event.source)
async def unknown(self, room: MatrixRoom, event: UnknownEvent) -> None: async def unknown(self, room: MatrixRoom, event: UnknownEvent) -> None:
"""Callback for when an event with a type that is unknown to matrix-nio is received. """Callback for when an event with a type that is unknown to matrix-nio is received.