rooms: Return true on membership changes and encryption change in handle_events.
This commit is contained in:
parent
dec12a898e
commit
9a3dae6aab
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue