Send ack PUTs for unreads.

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

No files matched your search

+3 -2
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');
}
}
}