Catch cancelation of confirmation dialog

Avoid 'Uncaught (in promise)' error in the console.

// FREEBIE
pull/749/head
lilia 10 years ago
parent c64fe8410e
commit 6717390e83

@ -181,7 +181,9 @@
this.confirm("Permanently delete this conversation?").then(function() {
this.model.destroyMessages();
this.remove();
}.bind(this));
}.bind(this)).catch(function() {
// clicked cancel, nothing to do.
});
this.$('.menu-list').hide();
},

Loading…
Cancel
Save