Merge pull request #880 from mautrix/max/bri-5580
Fix remaining reconnect bug in provision API
This commit is contained in:
@@ -585,7 +585,7 @@ class User(DBUser, AbstractUser, BaseUser):
|
|||||||
message: str | None = None,
|
message: str | None = None,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
puppet = await pu.Puppet.get_by_tgid(self.tgid)
|
puppet = await pu.Puppet.get_by_tgid(self.tgid)
|
||||||
if puppet.is_real_user:
|
if puppet is not None and puppet.is_real_user:
|
||||||
await puppet.switch_mxid(None, None)
|
await puppet.switch_mxid(None, None)
|
||||||
try:
|
try:
|
||||||
await self.kick_from_portals()
|
await self.kick_from_portals()
|
||||||
|
|||||||
Reference in New Issue
Block a user