Are you using Blaze,
We are handling any changes in the collection using this
Collection.find({ user: "id"},{sort: {last_msg_time: -1}})
.observe({
added: function(newDoc) {
},
removed: function(oldDoc) {
},
changed: function(newDoc, oldDoc) {
}
});
If you are using blaze, I would like to know how you are using viewmodal