mark chat room notifs read on load

This commit is contained in:
Barış Soner Uşaklı
2023-07-21 16:19:26 -04:00
parent 2792d77104
commit 4f3f9d9891
5 changed files with 22 additions and 29 deletions

View File

@@ -58,12 +58,12 @@ Chats.rename = async (req, res) => {
Chats.mark = async (req, res) => {
const state = req.method === 'PUT' ? 1 : 0;
const roomObj = await api.chats.mark(req, {
await api.chats.mark(req, {
roomId: req.params.roomId,
state,
});
helpers.formatApiResponse(200, res, roomObj);
helpers.formatApiResponse(200, res);
};
Chats.users = async (req, res) => {