api: add API to reset contact encryption

This commit is contained in:
link2xt
2024-11-02 20:45:47 +00:00
committed by l
parent c627d2fcc8
commit 92c6dd483c
4 changed files with 106 additions and 0 deletions

View File

@@ -36,6 +36,10 @@ class Contact:
"""Delete contact."""
self._rpc.delete_contact(self.account.id, self.id)
def reset_encryption(self) -> None:
"""Reset contact encryption."""
self._rpc.reset_contact_encryption(self.account.id, self.id)
def set_name(self, name: str) -> None:
"""Change the name of this contact."""
self._rpc.change_contact_name(self.account.id, self.id, name)