mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-27 01:15:51 +02:00
refactor(socket.io): deprecate SocketModules.chats.loadPinnedMessages in favour of api.chats.getPinnedMessages"
This commit is contained in:
@@ -152,6 +152,12 @@ Chats.messages.list = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, { messages });
|
||||
};
|
||||
|
||||
Chats.messages.getPinned = async (req, res) => {
|
||||
const { start } = req.query;
|
||||
|
||||
helpers.formatApiResponse(200, res, await api.chats.getPinnedMessages(req, { start, ...req.params }));
|
||||
};
|
||||
|
||||
Chats.messages.get = async (req, res) => {
|
||||
const { mid, roomId } = req.params;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user