diff --git a/release_build_files/readme.md b/release_build_files/readme.md index 6f173209ad..1507013896 100644 --- a/release_build_files/readme.md +++ b/release_build_files/readme.md @@ -580,7 +580,9 @@ code. ([#745](https://github.com/firebase/firebase-cpp-sdk/pull/745)) - Messaging (Android): Fixed crash during initialization. ([#760](https://github.com/firebase/firebase-cpp-sdk/pull/760)) - + - Remote Config (Desktop): Fixed cache expiration time value used by + `RemoteConfig::FetchAndActivate()`. + ([#767](https://github.com/firebase/firebase-cpp-sdk/pull/767)) ### 8.7.0 - Changes diff --git a/remote_config/src/desktop/remote_config_desktop.cc b/remote_config/src/desktop/remote_config_desktop.cc index 7e0bafdd03..624a77ebd5 100644 --- a/remote_config/src/desktop/remote_config_desktop.cc +++ b/remote_config/src/desktop/remote_config_desktop.cc @@ -140,7 +140,8 @@ Future RemoteConfigInternal::FetchAndActivate() { future_impl_.SafeAlloc(kRemoteConfigFnFetchAndActivate); cache_expiration_in_seconds_ = - config_settings_.minimum_fetch_interval_in_milliseconds; + config_settings_.minimum_fetch_interval_in_milliseconds / + ::firebase::internal::kMillisecondsPerSecond; uint64_t milliseconds_since_epoch = std::chrono::duration_cast(