From 0f6d9670ff7935a0d4aa8d34e01eb79ec3976ff2 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Mon, 30 Mar 2026 14:45:47 +0200 Subject: [PATCH] update RPC --- src/main/java/chat/delta/rpc/Rpc.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/chat/delta/rpc/Rpc.java b/src/main/java/chat/delta/rpc/Rpc.java index 0eebb7925..7e3f50d53 100644 --- a/src/main/java/chat/delta/rpc/Rpc.java +++ b/src/main/java/chat/delta/rpc/Rpc.java @@ -820,6 +820,16 @@ public class Rpc { transport.call("marknoticed_chat", mapper.valueToTree(accountId), mapper.valueToTree(chatId)); } + /** + * Marks the last incoming message in the chat as _fresh_. + *

+ * UI can use this to offer a "mark unread" option, + * so that already noticed chats get a badge counter again. + */ + public void markfreshChat(Integer accountId, Integer chatId) throws RpcException { + transport.call("markfresh_chat", mapper.valueToTree(accountId), mapper.valueToTree(chatId)); + } + /** * Returns the message that is immediately followed by the last seen * message.