Fix user instantiation bug
This fix was suggested by @katanakdubs:matrix.katanakdubs.com
This commit is contained in:
parent
0e8a5e5888
commit
86c038fd2f
|
@ -224,7 +224,7 @@ class User(DBUser, BaseUser):
|
||||||
|
|
||||||
if create:
|
if create:
|
||||||
cls.log.debug(f"Creating user instance for {mxid}")
|
cls.log.debug(f"Creating user instance for {mxid}")
|
||||||
user = cls(mxid)
|
user = cls(mxid, False, False)
|
||||||
await user.insert()
|
await user.insert()
|
||||||
user._add_to_cache()
|
user._add_to_cache()
|
||||||
return user
|
return user
|
||||||
|
|
Loading…
Reference in New Issue