Fixup opening existing private conversations

pull/749/head
lilia 11 years ago
parent 200981e022
commit 4422582ab7

@ -186,11 +186,13 @@ var Whisper = Whisper || {};
id: this.recipients.at(0).id,
type: 'private'
});
conversation.fetch().fail(function() {
conversation.fetch().then(function() {
this.$el.trigger('open', { modelId: conversation.id });
}.bind(this)).fail(function() {
if (conversation.save()) {
this.$el.trigger('open', { modelId: conversation.id });
}
});
}.bind(this));
},
createGroup: function() {

Loading…
Cancel
Save