handleDataMessage: Remove if(confirm) checks, add try/catch
FREEBIE
This commit is contained in:
parent
832b343031
commit
7e0bd82bd3
1 changed files with 7 additions and 7 deletions
|
@ -510,22 +510,22 @@
|
|||
|
||||
console.log('done with handleDataMessage', message.idForLogging());
|
||||
|
||||
if (confirm) {
|
||||
confirm();
|
||||
}
|
||||
return resolve();
|
||||
}
|
||||
catch (e) {
|
||||
handleError(e);
|
||||
}
|
||||
}, function(error) {
|
||||
try {
|
||||
console.log('handleDataMessage: Message', message.idForLogging(), 'was deleted');
|
||||
|
||||
if (confirm) {
|
||||
confirm();
|
||||
}
|
||||
|
||||
return resolve();
|
||||
}
|
||||
catch (e) {
|
||||
handleError(e);
|
||||
}
|
||||
});
|
||||
}, handleError);
|
||||
}, handleError);
|
||||
|
|
Loading…
Reference in a new issue