mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 23:36:30 +03:00
api(deltachat-rpc-client): add Account.get_device_chat()
This commit is contained in:
@@ -145,6 +145,10 @@ class Account:
|
|||||||
[contact] = self.import_vcard(vcard)
|
[contact] = self.import_vcard(vcard)
|
||||||
return contact.create_chat()
|
return contact.create_chat()
|
||||||
|
|
||||||
|
def get_device_chat(self) -> Chat:
|
||||||
|
"""Return device chat."""
|
||||||
|
return self.device_contact.create_chat()
|
||||||
|
|
||||||
def get_contact_by_id(self, contact_id: int) -> Contact:
|
def get_contact_by_id(self, contact_id: int) -> Contact:
|
||||||
"""Return Contact instance for the given contact ID."""
|
"""Return Contact instance for the given contact ID."""
|
||||||
return Contact(self, contact_id)
|
return Contact(self, contact_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user