From 94280addaea3f1a20b5eefd7a0f62e46cb57477b Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Wed, 18 Sep 2024 18:41:58 -0300 Subject: [PATCH] fix: error on sendmessage stub --- apps/meteor/app/lib/client/methods/sendMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/app/lib/client/methods/sendMessage.ts b/apps/meteor/app/lib/client/methods/sendMessage.ts index bdaca587493a..19220f901458 100644 --- a/apps/meteor/app/lib/client/methods/sendMessage.ts +++ b/apps/meteor/app/lib/client/methods/sendMessage.ts @@ -43,7 +43,7 @@ Meteor.methods({ await onClientMessageReceived(message as IMessage).then((message) => { ChatMessage.insert(message); - return callbacks.run('afterSaveMessage', message, room); + return callbacks.run('afterSaveMessage', message, { room }); }); }, });