mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Catch cancelation of confirmation dialog
Avoid 'Uncaught (in promise)' error in the console. // FREEBIE
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user