Fix self parameter name in _mute_room. Fixes #764
This commit is contained in:
@@ -470,8 +470,8 @@ class User(DBUser, AbstractUser, BaseUser):
|
|||||||
self.log.debug("Removing tag {tag} from {portal.mxid}/{portal.tgid}")
|
self.log.debug("Removing tag {tag} from {portal.mxid}/{portal.tgid}")
|
||||||
await puppet.intent.remove_room_tag(portal.mxid, tag)
|
await puppet.intent.remove_room_tag(portal.mxid, tag)
|
||||||
|
|
||||||
async def _mute_room(cls, puppet: pu.Puppet, portal: po.Portal, mute_until: datetime) -> None:
|
async def _mute_room(self, puppet: pu.Puppet, portal: po.Portal, mute_until: datetime) -> None:
|
||||||
if not cls.config["bridge.mute_bridging"] or not portal or not portal.mxid:
|
if not self.config["bridge.mute_bridging"] or not portal or not portal.mxid:
|
||||||
return
|
return
|
||||||
now = datetime.utcnow().replace(tzinfo=timezone.utc)
|
now = datetime.utcnow().replace(tzinfo=timezone.utc)
|
||||||
if mute_until is not None and mute_until > now:
|
if mute_until is not None and mute_until > now:
|
||||||
|
|||||||
Reference in New Issue
Block a user