api(deltachat-rpc-client): add Account.add_transport_from_qr() API

This commit is contained in:
link2xt
2025-10-27 17:41:39 +00:00
committed by l
parent 21caf87119
commit 9f0d106818

View File

@@ -125,6 +125,11 @@ class Account:
"""Add a new transport."""
yield self._rpc.add_or_update_transport.future(self.id, params)
@futuremethod
def add_transport_from_qr(self, qr: str):
"""Add a new transport using a QR code."""
yield self._rpc.add_transport_from_qr.future(self.id, qr)
@futuremethod
def list_transports(self):
"""Return the list of all email accounts that are used as a transport in the current profile."""