From 4422582ab71dd22fc0a3fa5efe80778e4a767947 Mon Sep 17 00:00:00 2001 From: lilia Date: Sun, 8 Feb 2015 08:46:08 -1000 Subject: [PATCH] Fixup opening existing private conversations --- js/views/new_conversation_view.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/views/new_conversation_view.js b/js/views/new_conversation_view.js index 0c1485e13e..47bd53bc32 100644 --- a/js/views/new_conversation_view.js +++ b/js/views/new_conversation_view.js @@ -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() {