Skip to content

Commit

Permalink
Fix sync getting stuck on key mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasn committed Apr 24, 2023
1 parent 75ac59a commit dfa512c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Sync assistant styling
- Upgraded dependencies

### Fixed:
- Sync getting stuck after generating new sync key and on reading sync message encrypted with old key

## [0.8.329] - 2023-04-23
### Changed:
- Upgrade flutter_quill lib
Expand Down
9 changes: 9 additions & 0 deletions lib/sync/inbox/process_message.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:async';

import 'package:cryptography/cryptography.dart';
import 'package:enough_mail/enough_mail.dart';
import 'package:flutter/foundation.dart';
import 'package:lotti/classes/config.dart';
Expand Down Expand Up @@ -116,6 +117,14 @@ Future<void> fetchByUid({
subDomain: '_fetchByUid',
);
rethrow;
} on SecretBoxAuthenticationError catch (e) {
await setLastReadUid(uid);
loggingDb.captureException(
e,
domain: 'INBOX_SERVICE',
subDomain: '_fetchByUid skipping',
);
rethrow;
} catch (e, stackTrace) {
loggingDb.captureException(
e,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lotti
description: Achieve your goals and keep your data private with Lotti.
publish_to: 'none'
version: 0.9.330+2030
version: 0.9.330+2031

msix_config:
display_name: LottiApp
Expand Down

0 comments on commit dfa512c

Please sign in to comment.