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

@@ -273,6 +273,9 @@ def test_chat(acfactory) -> None:
assert group.get_messages()
group.get_fresh_message_count()
group.mark_noticed()
assert group.get_fresh_message_count() == 0
group.mark_fresh()
assert group.get_fresh_message_count() > 0
assert group.get_contacts()
assert group.get_past_contacts() == []
group.remove_contact(alice_contact_bob)