Re-register support for sealed sender when a device is re-linked

This commit is contained in:
Scott Nonnenberg 2019-07-29 12:17:33 -07:00
parent 6c0365a770
commit cb9ba0fe7f
2 changed files with 8 additions and 1 deletions

View File

@ -2589,7 +2589,6 @@ async function removeAllConfiguration() {
try {
await Promise.all([
db.run('BEGIN TRANSACTION;'),
db.run('DELETE FROM identityKeys;'),
db.run('DELETE FROM items;'),
db.run('DELETE FROM preKeys;'),

View File

@ -380,6 +380,14 @@
]);
}
if (window.isBeforeVersion(lastVersion, 'v1.26.0')) {
// Ensure that we re-register our support for sealed sender
await storage.put(
'hasRegisterSupportForUnauthenticatedDelivery',
false
);
}
// This one should always be last - it could restart the app
if (window.isBeforeVersion(lastVersion, 'v1.15.0-beta.5')) {
await window.Signal.Logs.deleteAll();