From 8b27c99f2ba54db565d9dc567f8b3c504798e4ed Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 15 Sep 2015 13:22:28 -0700 Subject: [PATCH] Fix exception while creating a conversation When confirming the creation of a one on one conversation with a new contact, the first click would do nothing but the second click would work. Now the first click works. Fix by only reject new conversation creation if not saved. // FREEBIE --- js/panel_controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/panel_controller.js b/js/panel_controller.js index 685fa6d44..338826bb8 100644 --- a/js/panel_controller.js +++ b/js/panel_controller.js @@ -60,8 +60,9 @@ saved.then(function() { resolve(conversation); }).fail(reject); + } else { + reject(); } - reject(); }); }); },