Make logged_in and has_full_access async functions instead of properties

This commit is contained in:
Tulir Asokan
2018-06-22 12:45:19 +03:00
parent 42056b91c5
commit d466060c44
10 changed files with 50 additions and 50 deletions
+3 -1
View File
@@ -49,7 +49,6 @@ class Puppet:
self._db_instance = db_instance
self.intent = self.az.intent.user(self.mxid)
self.logged_in = True
self.cache[id] = self
@@ -57,6 +56,9 @@ class Puppet:
def tgid(self):
return self.id
async def is_logged_in(self):
return True
@property
def db_instance(self):
if not self._db_instance: