mirror of
https://github.com/maubot/maubot
synced 2025-09-02 00:00:39 +00:00
Add device_id to client db
This commit is contained in:
parent
9578883bbb
commit
09108f6a73
6 changed files with 47 additions and 10 deletions
|
@ -60,7 +60,7 @@ class Client:
|
|||
self.remote_avatar_url = None
|
||||
self.client = MaubotMatrixClient(mxid=self.id, base_url=self.homeserver,
|
||||
token=self.access_token, client_session=self.http_client,
|
||||
log=self.log, loop=self.loop,
|
||||
log=self.log, loop=self.loop, device_id=self.device_id,
|
||||
store=ClientStoreProxy(self.db_instance))
|
||||
self.client.ignore_initial_sync = True
|
||||
self.client.ignore_first_sync = True
|
||||
|
@ -273,6 +273,10 @@ class Client:
|
|||
def access_token(self) -> str:
|
||||
return self.db_instance.access_token
|
||||
|
||||
@property
|
||||
def device_id(self) -> str:
|
||||
return self.db_instance.device_id
|
||||
|
||||
@property
|
||||
def enabled(self) -> bool:
|
||||
return self.db_instance.enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue