Send ack PUTs for unreads.

This commit is contained in:
Paul
2021-06-22 18:01:03 +01:00
parent 3c8c9a672f
commit b1a4604653
4 changed files with 16 additions and 16 deletions

View File

@@ -25,9 +25,10 @@ export function useUnreads({ channel, unreads, dispatcher }: UnreadProps, contex
dispatcher({
type: "UNREADS_MARK_READ",
channel: channel._id,
message,
request: true
message
});
ctx.client.req('PUT', `/channels/${channel._id}/ack/${message}` as '/channels/id/ack/id');
}
}
}