diff --git a/app/user.js b/app/user.js index 980e53fc..04c3d4c5 100644 --- a/app/user.js +++ b/app/user.js @@ -128,7 +128,9 @@ export default class User { ); list = JSON.parse(textDecoder.decode(decrypted)); } catch (e) { - // + if (e.message === '401') { + return this.logout(); + } } changes = await this.storage.merge(list); if (!changes.outgoing) {