api(deltachat-rpc-client): add Account.set_transport_unpublished()

This commit is contained in:
link2xt
2026-07-15 14:22:30 +00:00
committed by l
parent 5d0e5efc94
commit e5c920f1a1

View File

@@ -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."""