mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-22 15:33:13 +01:00
feat: send event:chats.mark socket event on mark read or unread
This commit is contained in:
@@ -81,6 +81,7 @@ chatsAPI.mark = async (caller, data) => {
|
||||
await messaging.markRead(caller.uid, roomId);
|
||||
}
|
||||
|
||||
socketHelpers.emitToUids('event:chats.mark', { roomId, state }, [caller.uid]);
|
||||
return messaging.loadRoom(caller.uid, { roomId });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user