diff --git a/src/matrix_applicationbot/classes/bot.py b/src/matrix_applicationbot/classes/bot.py index f5c959a..763ce26 100644 --- a/src/matrix_applicationbot/classes/bot.py +++ b/src/matrix_applicationbot/classes/bot.py @@ -90,7 +90,9 @@ class ApplicationBot: await self.open_ticket(room, event.state_key) async def reaction_callback(self, room: MatrixRoom, event): - relation = event.content.get("m.relates_to", {}) + logging.debug(f"Received reaction event: {event}") + + relation = event.source["content"].get("m.relates_to", {}) message_id = relation.get("event_id") key = relation.get("key")