-
Couldn't load subscription status.
- Fork 376
Feat: Detect for timezone changes and update the user #2378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
dedab04
6018f4d
e433a4f
f225c32
a4a6d5e
14b5d76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,9 +89,8 @@ internal class RefreshUserOperationExecutor( | |
| } | ||
| } | ||
|
|
||
| if (response.properties.timezoneId != null) { | ||
| propertiesModel.timezone = response.properties.timezoneId | ||
| } | ||
| // No longer hydrate timezone from remote, set locally | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same with this. |
||
| propertiesModel.update() | ||
|
||
|
|
||
| val subscriptionModels = mutableListOf<SubscriptionModel>() | ||
| for (subscription in response.subscriptions) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| package com.onesignal.user.internal.properties | ||
|
|
||
| import com.onesignal.common.TimeUtils | ||
| import com.onesignal.common.modeling.MapModel | ||
| import com.onesignal.common.modeling.Model | ||
| import org.json.JSONObject | ||
|
|
@@ -122,4 +123,8 @@ class PropertiesModel : Model() { | |
|
|
||
| return null | ||
| } | ||
|
|
||
| fun update() { | ||
| timezone = TimeUtils.getTimeZoneId() | ||
|
||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.