From 94280addaea3f1a20b5eefd7a0f62e46cb57477b Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Wed, 18 Sep 2024 18:41:58 -0300 Subject: [PATCH 1/2] 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 }); }); }, }); From fe10246f4ba3a29ea3f440a90c5647b9645e461c Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Wed, 18 Sep 2024 22:35:44 -0400 Subject: [PATCH 2/2] Create cyan-ladybugs-thank.md --- .changeset/cyan-ladybugs-thank.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/cyan-ladybugs-thank.md diff --git a/.changeset/cyan-ladybugs-thank.md b/.changeset/cyan-ladybugs-thank.md new file mode 100644 index 000000000000..377a014fcb72 --- /dev/null +++ b/.changeset/cyan-ladybugs-thank.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/meteor": patch +--- + +Fixed error during sendmessage client stub