Contact sync should update existing contacts

// FREEBIE
This commit is contained in:
lilia 2015-09-17 14:25:49 -07:00
parent 7f4ef6e9e7
commit 310f40fcad

View file

@ -52,7 +52,7 @@
if (typeof attrs !== 'object') { if (typeof attrs !== 'object') {
throw new Error('ConversationController.create requires an object, got', attrs); throw new Error('ConversationController.create requires an object, got', attrs);
} }
var conversation = conversations.add(attrs); var conversation = conversations.add(attrs, {merge: true});
return conversation; return conversation;
}, },
findOrCreatePrivateById: function(id) { findOrCreatePrivateById: function(id) {