feat: more easter eggs + version checking

This commit is contained in:
2026-10-27 00:17:18 +01:00
parent 4d9ba67eb1
commit 1aee0541c4
14 changed files with 178 additions and 6 deletions
+9
View File
@@ -273,6 +273,13 @@ class RemoteSyncService {
stopPeriodicSync();
_emit(RemoteSyncEventType.unauthorized);
return;
} on UpdateRequiredException catch (e) {
// Retrying can't help until the app is updated. The token and every
// outbox stay, so nothing is lost; a manual sync or restart tries again
debugPrint('RemoteSyncService: app update required');
stopPeriodicSync();
_emit(RemoteSyncEventType.updateRequired, message: e.message);
return;
} on RateLimitedException catch (e) {
nextDelay = await _recordFailure(e, retryAfter: e.retryAfter);
} catch (e, stack) {
@@ -328,6 +335,8 @@ class RemoteSyncService {
);
} on UnauthorizedException {
rethrow;
} on UpdateRequiredException {
rethrow;
} catch (e) {
debugPrint('RemoteSyncService: picture upload failed: $e');
}