Skip to content

Commit

Permalink
Fix notification disabler breaking when not using double puppeting
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jun 9, 2020
1 parent 8cdc77a commit c862327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mautrix/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.5.3"
__version__ = "0.5.4"
__author__ = "Tulir Asokan <[email protected]>"
__all__ = ["api", "appservice", "bridge", "client", "errors", "util", "types"]
3 changes: 1 addition & 2 deletions mautrix/bridge/notification_disabler.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def __init__(self, room_id: RoomID, user: BaseUser) -> None:
self.room_id = room_id
self.enabled = False
puppet = self.puppet_cls.get_by_custom_mxid(user.mxid)
if puppet and puppet.is_real_user:
self.intent = puppet.intent
self.intent = puppet.intent if puppet and puppet.is_real_user else None

@property
def _path(self) -> PathBuilder:
Expand Down

0 comments on commit c862327

Please sign in to comment.