Fix orphaned string literals in local_message_store.dart causing build failure

This commit is contained in:
Patrick Britton 2026-02-06 15:40:36 -06:00
parent 2ad148f607
commit d83cdb3778

View file

@ -89,9 +89,7 @@ class LocalMessageStore {
);
return _cachedKey!;
} catch (e) {
if (attempt == _maxRetries - 1) {
'[LOCAL_STORE] Failed to store encryption key after $_maxRetries attempts: $e');
}
if (attempt == _maxRetries - 1) rethrow;
await Future.delayed(_retryDelay * (attempt + 1));
}
}
@ -187,7 +185,6 @@ class LocalMessageStore {
success = true;
break;
} catch (e) {
'[LOCAL_STORE] Save attempt ${attempt + 1}/$_maxRetries failed for $messageId: $e');
if (attempt < _maxRetries - 1) {
await Future.delayed(_retryDelay * (attempt + 1));
}
@ -250,7 +247,6 @@ class LocalMessageStore {
await _messageBox!.delete(messageId);
return pending?.plaintext;
}
'[LOCAL_STORE] Read attempt ${attempt + 1}/$_maxRetries failed for $messageId: $e');
if (attempt < _maxRetries - 1) {
await Future.delayed(_retryDelay * (attempt + 1));
}
@ -453,7 +449,6 @@ class LocalMessageStore {
return true;
} catch (e) {
'[LOCAL_STORE] Delete attempt ${attempt + 1}/$_maxRetries failed for $messageId: $e');
if (attempt < _maxRetries - 1) {
await Future.delayed(_retryDelay * (attempt + 1));
}