mirror of
https://github.com/chatmail/core.git
synced 2026-08-18 06:36:29 +03:00
api(deltachat-rpc-client): add Account.set_transport_unpublished()
This commit is contained in:
@@ -133,6 +133,10 @@ class Account:
|
||||
"""Delete a transport."""
|
||||
self._rpc.delete_transport(self.id, addr)
|
||||
|
||||
def set_transport_unpublished(self, addr: str, unpublished: bool = True):
|
||||
"""Unpublish the transport."""
|
||||
self._rpc.set_transport_unpublished(self.id, addr, unpublished)
|
||||
|
||||
@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