diff --git a/packages/rocketchat-lib/server/sendMessage.coffee b/packages/rocketchat-lib/server/sendMessage.coffee index 540c60df1d11..f0f5e46d6f84 100644 --- a/packages/rocketchat-lib/server/sendMessage.coffee +++ b/packages/rocketchat-lib/server/sendMessage.coffee @@ -45,12 +45,12 @@ RocketChat.sendMessage = (user, message, room) -> ChatRoom.update # only subscriptions to the same room - rid: message.rid + _id: message.rid , # update the last message timestamp $set: lm: message.ts - # increate the messages counter + # increment the messages counter $inc: msgs: 1