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
This commit is contained in:
lilia 2015-09-15 13:22:28 -07:00
parent 4b0c70fb44
commit 8b27c99f2b

View file

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