Skip to content

Commit ad44ce9

Browse files
authored
Follow-up to make #7124 target iPhone 11 (#7555)
* Avoid using features newer than iPhone 11 in client_impl_base.cpp * Adding a note in the changelog
1 parent 57404f6 commit ad44ce9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Fixed diverging history due to a bug in the replication code when setting default null values (embedded objects included) ([#7536](https://github.com/realm/realm-core/issues/7536)).
1010
* Version 19.39.33523 of MSVC would crash when compiling for arm64 in release mode ([PR #7533](https://github.com/realm/realm-core/pull/7533)).
1111
* Null pointer exception may be triggered when logging out and async commits callbacks not executed ([#7434](https://github.com/realm/realm-core/issues/7434), since v13.26.0)
12+
* Fixed building for iPhone simulators targeting deployment target 11 ([#7554](https://github.com/realm/realm-core/pull/7554)).
1213

1314
### Breaking changes
1415
* Updated default base URL to be `https://services.cloud.mongodb.com` to support the new domains (was `https://realm.mongodb.com`). ([PR #7534](https://github.com/realm/realm-core/pull/7534))

src/realm/sync/noinst/client_impl_base.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,10 +2365,10 @@ Status Session::receive_download_message(const DownloadMessage& message)
23652365
return Status::OK();
23662366

23672367
bool is_flx = m_conn.is_flx_sync_connection();
2368-
int64_t query_version = is_flx ? message.query_version.value() : 0;
2368+
int64_t query_version = is_flx ? *message.query_version : 0;
23692369

23702370
// If this is a PBS connection, then every download message is its own complete batch.
2371-
bool last_in_batch = is_flx ? message.last_in_batch.value() : true;
2371+
bool last_in_batch = is_flx ? *message.last_in_batch : true;
23722372
auto batch_state = last_in_batch ? sync::DownloadBatchState::LastInBatch : sync::DownloadBatchState::MoreToCome;
23732373
if (is_steady_state_download_message(batch_state, query_version))
23742374
batch_state = DownloadBatchState::SteadyState;

0 commit comments

Comments
 (0)