From db1a7f6084f4110aac92576e961ada628757ab6e Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 9 Mar 2025 22:52:06 +0000 Subject: [PATCH] api(deltachat-rpc-client): add Account.get_device_chat() --- deltachat-rpc-client/src/deltachat_rpc_client/account.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/account.py b/deltachat-rpc-client/src/deltachat_rpc_client/account.py index a3d073e69..d9158cff4 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/account.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/account.py @@ -145,6 +145,10 @@ class Account: [contact] = self.import_vcard(vcard) 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: """Return Contact instance for the given contact ID.""" return Contact(self, contact_id)