Set conversation type when creating from sync message

When a conversation is created as the result of a sync message, and it
is not a group, we need to set its type to private.

// FREEBIE
pull/749/head
lilia 11 years ago
parent 7e8b1319a5
commit e9d7864f75

@ -140,7 +140,7 @@
var conversation = new Whisper.Conversation({id: conversationId}); var conversation = new Whisper.Conversation({id: conversationId});
conversation.fetch().always(function() { conversation.fetch().always(function() {
var now = new Date().getTime(); var now = new Date().getTime();
var attributes = {}; var attributes = { type: 'private' };
if (pushMessageContent.group) { if (pushMessageContent.group) {
var group_update = {}; var group_update = {};
attributes = { attributes = {

Loading…
Cancel
Save