Fixup opening existing private conversations
This commit is contained in:
parent
200981e022
commit
4422582ab7
1 changed files with 4 additions and 2 deletions
|
@ -186,11 +186,13 @@ var Whisper = Whisper || {};
|
||||||
id: this.recipients.at(0).id,
|
id: this.recipients.at(0).id,
|
||||||
type: 'private'
|
type: 'private'
|
||||||
});
|
});
|
||||||
conversation.fetch().fail(function() {
|
conversation.fetch().then(function() {
|
||||||
|
this.$el.trigger('open', { modelId: conversation.id });
|
||||||
|
}.bind(this)).fail(function() {
|
||||||
if (conversation.save()) {
|
if (conversation.save()) {
|
||||||
this.$el.trigger('open', { modelId: conversation.id });
|
this.$el.trigger('open', { modelId: conversation.id });
|
||||||
}
|
}
|
||||||
});
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
createGroup: function() {
|
createGroup: function() {
|
||||||
|
|
Loading…
Reference in a new issue