@@ -334,18 +334,18 @@ public class OneSignalUserManagerImpl: NSObject, OneSignalUserManager {
334334 }
335335
336336 let identityModel = OSIdentityModel ( aliases: aliases, changeNotifier: OSEventProducer ( ) )
337- self . identityModelStore. add ( id: OS_IDENTITY_MODEL_KEY, model: identityModel)
337+ self . identityModelStore. add ( id: OS_IDENTITY_MODEL_KEY, model: identityModel, hydrating : false )
338338
339339 let propertiesModel = OSPropertiesModel ( changeNotifier: OSEventProducer ( ) )
340- self . propertiesModelStore. add ( id: OS_PROPERTIES_MODEL_KEY, model: propertiesModel)
340+ self . propertiesModelStore. add ( id: OS_PROPERTIES_MODEL_KEY, model: propertiesModel, hydrating : false )
341341
342342 // TODO: We will have to save subscription_id and push_token to user defaults when we get them
343343
344344 let pushSubscription = pushSubscriptionModel ?? createDefaultPushSubscription ( )
345345
346346 // Add pushSubscription to store if not present
347347 if ( !pushSubscriptionModelStore. getModels ( ) . keys. contains ( OS_PUSH_SUBSCRIPTION_MODEL_KEY) ) {
348- pushSubscriptionModelStore. add ( id: OS_PUSH_SUBSCRIPTION_MODEL_KEY, model: pushSubscription)
348+ pushSubscriptionModelStore. add ( id: OS_PUSH_SUBSCRIPTION_MODEL_KEY, model: pushSubscription, hydrating : false )
349349 }
350350
351351 _user = OSUserInternalImpl ( identityModel: identityModel, propertiesModel: propertiesModel, pushSubscriptionModel: pushSubscription)
@@ -558,7 +558,7 @@ extension OneSignalUserManagerImpl: OSUser {
558558 isDisabled: false ,
559559 changeNotifier: OSEventProducer ( )
560560 )
561- self . subscriptionModelStore. add ( id: email, model: model)
561+ self . subscriptionModelStore. add ( id: email, model: model, hydrating : false )
562562 }
563563
564564 /**
@@ -590,7 +590,7 @@ extension OneSignalUserManagerImpl: OSUser {
590590 isDisabled: false ,
591591 changeNotifier: OSEventProducer ( )
592592 )
593- self . subscriptionModelStore. add ( id: number, model: model)
593+ self . subscriptionModelStore. add ( id: number, model: model, hydrating : false )
594594 }
595595
596596 /**
0 commit comments