mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
api(deltachat-rpc-client): add Account.add_transport_from_qr() API
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user