api(deltachat-rpc-client): add Message.exists()

This commit is contained in:
link2xt
2025-11-28 00:10:09 +00:00
committed by l
parent 8a7498a9a8
commit 7bf7ec3d32
2 changed files with 23 additions and 0 deletions

View File

@@ -60,6 +60,10 @@ class Message:
"""Mark the message as seen."""
self._rpc.markseen_msgs(self.account.id, [self.id])
def exists(self) -> bool:
"""Return True if the message exists."""
return bool(self._rpc.get_existing_msg_ids(self.account.id, [self.id]))
def continue_autocrypt_key_transfer(self, setup_code: str) -> None:
"""Continue the Autocrypt Setup Message key transfer.