From 1bc41d8a98340a023e78a3c2152d080d763322fb Mon Sep 17 00:00:00 2001 From: Marcelo Schmidt Date: Thu, 6 May 2021 19:50:00 -0300 Subject: [PATCH] Fix validateMessage call --- app/lib/server/functions/sendMessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/server/functions/sendMessage.js b/app/lib/server/functions/sendMessage.js index a1b7fe0cafb2..1d1fafc16493 100644 --- a/app/lib/server/functions/sendMessage.js +++ b/app/lib/server/functions/sendMessage.js @@ -208,7 +208,7 @@ export const sendMessage = function(user, message, room, upsert = false) { message = Object.assign(message, result); // Some app may have inserted malicious/invalid values in the message, let's check it again - validateMessage(message, user._id); + validateMessage(message, room, user); } }