api: add JSON-RPC API markfresh_chat()

This commit is contained in:
link2xt
2026-03-25 05:19:08 +01:00
committed by l
parent c553357c60
commit 1b8bf4ed23
3 changed files with 18 additions and 2 deletions

View File

@@ -219,6 +219,10 @@ class Chat:
"""Mark all messages in this chat as noticed."""
self._rpc.marknoticed_chat(self.account.id, self.id)
def mark_fresh(self) -> None:
"""Mark the last incoming message in the chat as fresh."""
self._rpc.markfresh_chat(self.account.id, self.id)
def add_contact(self, *contact: Union[int, str, Contact, "Account"]) -> None:
"""Add contacts to this group."""
from .account import Account