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):
|
def handle_event(self, event):
|
||||||
if isinstance(event, RoomMembershipEvent):
|
if isinstance(event, RoomMembershipEvent):
|
||||||
self._handle_membership(event)
|
return self._handle_membership(event)
|
||||||
|
|
||||||
elif isinstance(event, RoomNameEvent):
|
elif isinstance(event, RoomNameEvent):
|
||||||
self.name = event.name
|
self.name = event.name
|
||||||
|
@ -176,6 +176,7 @@ class MatrixRoom:
|
||||||
|
|
||||||
elif isinstance(event, RoomEncryptionEvent):
|
elif isinstance(event, RoomEncryptionEvent):
|
||||||
self.encrypted = True
|
self.encrypted = True
|
||||||
|
return True
|
||||||
|
|
||||||
elif isinstance(event, RoomPowerLevels):
|
elif isinstance(event, RoomPowerLevels):
|
||||||
self.power_levels = event.power_levels
|
self.power_levels = event.power_levels
|
||||||
|
|
Loading…
Reference in a new issue