mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +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."""
|
"""Add a new transport."""
|
||||||
yield self._rpc.add_or_update_transport.future(self.id, params)
|
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
|
@futuremethod
|
||||||
def list_transports(self):
|
def list_transports(self):
|
||||||
"""Return the list of all email accounts that are used as a transport in the current profile."""
|
"""Return the list of all email accounts that are used as a transport in the current profile."""
|
||||||
|
|||||||
Reference in New Issue
Block a user