Skip to content

Commit

Permalink
Merge pull request #2226 from skemb321/patch-1
Browse files Browse the repository at this point in the history
Missing 'room' param.
  • Loading branch information
engelgabriel committed Feb 15, 2016
2 parents 361b084 + 93f6744 commit 88376ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/methods/updateMessage.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Meteor.methods
_id: tempid
,
$set: message

room = RocketChat.models.Rooms.findOneById message.rid

Meteor.defer ->
RocketChat.callbacks.run 'afterSaveMessage', RocketChat.models.Messages.findOneById(tempid)
RocketChat.callbacks.run 'afterSaveMessage', RocketChat.models.Messages.findOneById(tempid), room

0 comments on commit 88376ea

Please sign in to comment.