Add method to mark message as read to REST API
When exposing unread messages counters in !1283 (merged), I noticed that they were never set to 0. I propose the following HTTP method:
Marking messages as read
POST /v1/messages/read/{contactId}
The messageId
of the message to be marked as read
needs to be provided in the request body as follows:
{
"messageId": "+AIMMgOCPFF8HDEhiEHYjbfKrg7v0G94inKxjvjYzA8="
}