Fix header case bugs in status code errors.

This commit is contained in:
Cody Henthorne
2025-09-26 12:54:18 -04:00
parent 4447b29e6c
commit 786bcc3da7
2 changed files with 5 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ class RemoteConfigRefreshJob private constructor(parameters: Parameters) : Job(p
if (result.code == 304) {
Log.i(TAG, "Remote config has not changed since last pull.")
SignalStore.remoteConfig.lastFetchTime = System.currentTimeMillis()
SignalStore.misc.setLastKnownServerTime(result.headers[SignalWebSocket.SERVER_DELIVERED_TIMESTAMP_HEADER]?.toLongOrNull() ?: System.currentTimeMillis(), System.currentTimeMillis())
SignalStore.misc.setLastKnownServerTime(result.header(SignalWebSocket.SERVER_DELIVERED_TIMESTAMP_HEADER)?.toLongOrNull() ?: System.currentTimeMillis(), System.currentTimeMillis())
Result.success()
} else {
Result.retry(defaultBackoff())