Skip to content

Commit db1a7f6

Browse files
committed
api(deltachat-rpc-client): add Account.get_device_chat()
1 parent 25df147 commit db1a7f6

File tree

1 file changed

+4
-0
lines changed
  • deltachat-rpc-client/src/deltachat_rpc_client

1 file changed

+4
-0
lines changed

deltachat-rpc-client/src/deltachat_rpc_client/account.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ def create_chat(self, account: "Account") -> Chat:
145145
[contact] = self.import_vcard(vcard)
146146
return contact.create_chat()
147147

148+
def get_device_chat(self) -> Chat:
149+
"""Return device chat."""
150+
return self.device_contact.create_chat()
151+
148152
def get_contact_by_id(self, contact_id: int) -> Contact:
149153
"""Return Contact instance for the given contact ID."""
150154
return Contact(self, contact_id)

0 commit comments

Comments
 (0)