Fix orphaned string literals in local_message_store.dart causing build failure
This commit is contained in:
parent
2ad148f607
commit
d83cdb3778
|
|
@ -89,9 +89,7 @@ class LocalMessageStore {
|
||||||
);
|
);
|
||||||
return _cachedKey!;
|
return _cachedKey!;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (attempt == _maxRetries - 1) {
|
if (attempt == _maxRetries - 1) rethrow;
|
||||||
'[LOCAL_STORE] Failed to store encryption key after $_maxRetries attempts: $e');
|
|
||||||
}
|
|
||||||
await Future.delayed(_retryDelay * (attempt + 1));
|
await Future.delayed(_retryDelay * (attempt + 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -187,7 +185,6 @@ class LocalMessageStore {
|
||||||
success = true;
|
success = true;
|
||||||
break;
|
break;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
'[LOCAL_STORE] Save attempt ${attempt + 1}/$_maxRetries failed for $messageId: $e');
|
|
||||||
if (attempt < _maxRetries - 1) {
|
if (attempt < _maxRetries - 1) {
|
||||||
await Future.delayed(_retryDelay * (attempt + 1));
|
await Future.delayed(_retryDelay * (attempt + 1));
|
||||||
}
|
}
|
||||||
|
|
@ -250,7 +247,6 @@ class LocalMessageStore {
|
||||||
await _messageBox!.delete(messageId);
|
await _messageBox!.delete(messageId);
|
||||||
return pending?.plaintext;
|
return pending?.plaintext;
|
||||||
}
|
}
|
||||||
'[LOCAL_STORE] Read attempt ${attempt + 1}/$_maxRetries failed for $messageId: $e');
|
|
||||||
if (attempt < _maxRetries - 1) {
|
if (attempt < _maxRetries - 1) {
|
||||||
await Future.delayed(_retryDelay * (attempt + 1));
|
await Future.delayed(_retryDelay * (attempt + 1));
|
||||||
}
|
}
|
||||||
|
|
@ -453,7 +449,6 @@ class LocalMessageStore {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
'[LOCAL_STORE] Delete attempt ${attempt + 1}/$_maxRetries failed for $messageId: $e');
|
|
||||||
if (attempt < _maxRetries - 1) {
|
if (attempt < _maxRetries - 1) {
|
||||||
await Future.delayed(_retryDelay * (attempt + 1));
|
await Future.delayed(_retryDelay * (attempt + 1));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue