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
pull/749/head
lilia 10 years ago
parent 4b0c70fb44
commit 8b27c99f2b

@ -60,8 +60,9 @@
saved.then(function() { saved.then(function() {
resolve(conversation); resolve(conversation);
}).fail(reject); }).fail(reject);
} else {
reject();
} }
reject();
}); });
}); });
}, },

Loading…
Cancel
Save