crash on error

This commit is contained in:
or-else
2018-10-06 13:50:01 +03:00
parent da24e28a92
commit c7b2a30f24
+1 -1
View File
@@ -598,7 +598,7 @@ class ContextMenu extends React.Component {
// We don't know if the message is still pending (e.g. attachment is being uploaded), // We don't know if the message is still pending (e.g. attachment is being uploaded),
// so try cancelling first. No harm if we can't cancel. // so try cancelling first. No harm if we can't cancel.
if (topic.cancelSend(params.seq)) { if (topic.cancelSend(params.seq)) {
return new Promise.resolve(); return Promise.resolve();
} }
// Can't cancel. Delete instead. // Can't cancel. Delete instead.
var promise = all ? var promise = all ?