From 9a3dae6aab466815257f895674d770c79f1ee013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 13 Jul 2018 16:32:09 +0200 Subject: [PATCH] rooms: Return true on membership changes and encryption change in handle_events. --- matrix/rooms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/rooms.py b/matrix/rooms.py index 67fc643..e15018c 100644 --- a/matrix/rooms.py +++ b/matrix/rooms.py @@ -166,7 +166,7 @@ class MatrixRoom: def handle_event(self, event): if isinstance(event, RoomMembershipEvent): - self._handle_membership(event) + return self._handle_membership(event) elif isinstance(event, RoomNameEvent): self.name = event.name @@ -176,6 +176,7 @@ class MatrixRoom: elif isinstance(event, RoomEncryptionEvent): self.encrypted = True + return True elif isinstance(event, RoomPowerLevels): self.power_levels = event.power_levels