Fix user instantiation bug

This fix was suggested by @katanakdubs:matrix.katanakdubs.com
This commit is contained in:
hnarjis 2022-07-25 06:51:32 -04:00
parent 0e8a5e5888
commit 86c038fd2f
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class User(DBUser, BaseUser):
if create:
cls.log.debug(f"Creating user instance for {mxid}")
user = cls(mxid)
user = cls(mxid, False, False)
await user.insert()
user._add_to_cache()
return user