Skip to content

Commit

Permalink
fix: error on sendmessage stub (#33317)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 19, 2024
1 parent d0595a3 commit a541f64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cyan-ladybugs-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixed error during sendmessage client stub
2 changes: 1 addition & 1 deletion apps/meteor/app/lib/client/methods/sendMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Meteor.methods<ServerMethods>({

await onClientMessageReceived(message as IMessage).then((message) => {
ChatMessage.insert(message);
return callbacks.run('afterSaveMessage', message, room);
return callbacks.run('afterSaveMessage', message, { room });
});
},
});

0 comments on commit a541f64

Please sign in to comment.