mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-29 09:56:05 +02:00
refactor(socket.io): deprecated SocketModules.chats.toggleOwner in favour of api.chats.toggleOwner
This commit is contained in:
@@ -126,6 +126,12 @@ Chats.kickUser = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, users);
|
||||
};
|
||||
|
||||
Chats.toggleOwner = async (req, res) => {
|
||||
const state = req.method === 'PUT';
|
||||
await api.chats.toggleOwner(req, { state, ...req.params });
|
||||
helpers.formatApiResponse(200, res);
|
||||
};
|
||||
|
||||
Chats.messages = {};
|
||||
Chats.messages.list = async (req, res) => {
|
||||
const uid = req.query.uid || req.uid;
|
||||
|
||||
Reference in New Issue
Block a user