Fixup opening existing private conversations

This commit is contained in:
lilia 2015-02-08 08:46:08 -10:00
parent 200981e022
commit 4422582ab7
1 changed files with 4 additions and 2 deletions

View File

@ -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() {