feat: GET /api/v3/chats/:roomId

This commit is contained in:
Julian Lam
2021-12-14 10:32:41 -05:00
parent 55e68e2fd5
commit 09cf9c7770
5 changed files with 158 additions and 4 deletions

View File

@@ -100,6 +100,8 @@ function rateLimitExceeded(socket) {
}
SocketModules.chats.loadRoom = async function (socket, data) {
sockets.warnDeprecated(socket, 'GET /api/v3/chats/:roomId');
if (!data || !data.roomId) {
throw new Error('[[error:invalid-data]]');
}