mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
Fix unresolved promise in removeSession
Previously if there was no session to remove, the promise returned from removeSession would never resolve, potentially blocking sending for that recipient until restart. // FREEBIE
This commit is contained in:
@@ -251,7 +251,7 @@
|
||||
var session = new Session({id: encodedNumber});
|
||||
session.fetch().then(function() {
|
||||
session.destroy().then(resolve);
|
||||
});
|
||||
}).fail(resolve);
|
||||
});
|
||||
},
|
||||
removeAllSessions: function(number) {
|
||||
|
||||
Reference in New Issue
Block a user