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.