mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
update RPC
This commit is contained in:
@@ -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_.
|
||||
* <p>
|
||||
* 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.
|
||||
|
||||
Reference in New Issue
Block a user