Skip to content

Commit 9f0d106

Browse files
committed
api(deltachat-rpc-client): add Account.add_transport_from_qr() API
1 parent 21caf87 commit 9f0d106

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ def add_or_update_transport(self, params):
125125
"""Add a new transport."""
126126
yield self._rpc.add_or_update_transport.future(self.id, params)
127127

128+
@futuremethod
129+
def add_transport_from_qr(self, qr: str):
130+
"""Add a new transport using a QR code."""
131+
yield self._rpc.add_transport_from_qr.future(self.id, qr)
132+
128133
@futuremethod
129134
def list_transports(self):
130135
"""Return the list of all email accounts that are used as a transport in the current profile."""

0 commit comments

Comments
 (0)