fixes for latest object store update
This commit is contained in:
parent
9900d24181
commit
e48e0b19f7
|
@ -62,7 +62,9 @@ class RealmDelegate : public BindingContext {
|
|||
using ObjectDefaultsMap = typename Schema<T>::ObjectDefaultsMap;
|
||||
using ConstructorMap = typename Schema<T>::ConstructorMap;
|
||||
|
||||
virtual void did_change(std::vector<ObserverState> const& observers, std::vector<void*> const& invalidated) {
|
||||
virtual void did_change(std::vector<ObserverState> const& observers,
|
||||
std::vector<void*> const& invalidated,
|
||||
bool version_changed=true) {
|
||||
notify("change");
|
||||
}
|
||||
virtual std::vector<ObserverState> get_observed_rows() {
|
||||
|
|
|
@ -303,7 +303,7 @@ void SyncClass<T>::populate_sync_config(ContextType ctx, ObjectType realm_constr
|
|||
|
||||
// FIXME - use make_shared
|
||||
config.sync_config = std::shared_ptr<SyncConfig>(
|
||||
new SyncConfig(shared_user, raw_realm_url, SyncSessionStopPolicy::AfterChangesUploaded, handler)
|
||||
new SyncConfig({shared_user, raw_realm_url, SyncSessionStopPolicy::AfterChangesUploaded, handler, [=](int error_code, std::string message, SyncSessionError) {}})
|
||||
);
|
||||
config.schema_mode = SchemaMode::Additive;
|
||||
config.path = realm::SyncManager::shared().path_for_realm(shared_user->identity(), raw_realm_url);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit aa6b8ee613e79c664bc59717ac84de8b33619594
|
||||
Subproject commit a61a0de00ffb15d9437629368dbaaef4ac40403a
|
Loading…
Reference in New Issue