From c64af4d953ec57f9d6b16d1ad5e450fbabcfa2d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 11 Jul 2018 12:58:43 +0200 Subject: [PATCH] events: Fix encrypted message sending. --- matrix/events.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/events.py b/matrix/events.py index 31f1f81..fb24c0c 100644 --- a/matrix/events.py +++ b/matrix/events.py @@ -387,7 +387,8 @@ class MatrixKeyClaimEvent(MatrixEvent): while server.encryption_queue[self.room_id]: formatted_message = server.encryption_queue[self.room_id].popleft() - server.send_room_message(self.room_id, formatted_message, True) + room, _ = server.find_room_from_id(self.room_id) + server.send_room_message(room, formatted_message, True) class MatrixToDeviceEvent(MatrixEvent):