Skip to content

Commit

Permalink
cached chat message collection
Browse files Browse the repository at this point in the history
  • Loading branch information
bhardwajaditya authored and kb0304 committed Oct 21, 2019
1 parent d6745e1 commit 4d21ab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/client/models/ChatMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ChatMessage.setReactions = function(messageId, reactions) {
ChatMessage.unsetReactions = function(messageId) {
return this.update({ _id: messageId }, { $unset: { reactions: 1 } });
};

new PersistentMinimongo2(ChatMessage, 'Message');

0 comments on commit 4d21ab2

Please sign in to comment.