feat: PUT /chats/:roomId/:mid

This commit is contained in:
Julian Lam
2021-12-20 11:30:43 -05:00
parent 140f9d2481
commit f48ed3658a
8 changed files with 58 additions and 69 deletions

View File

@@ -146,6 +146,8 @@ SocketModules.chats.leave = async function (socket, roomid) {
};
SocketModules.chats.edit = async function (socket, data) {
sockets.warnDeprecated(socket, 'PUT /api/v3/chats/:roomId/:mid');
if (!data || !data.roomId || !data.message) {
throw new Error('[[error:invalid-data]]');
}