Store pending push configuration to user

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-02-18 11:01:10 +01:00
parent 5e487dcdc2
commit 69a4a8a7c2
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0

View File

@ -172,6 +172,7 @@ class LoginEntryViewModel constructor(
val pushConfiguration = PushConfiguration()
val pushConfigurationStateWrapper = PushConfigurationStateWrapper(PushConfigurationState.PENDING, 0)
pushConfiguration.pushConfigurationStateWrapper = pushConfigurationStateWrapper
user.pushConfiguration = pushConfiguration
usersRepository.insertUser(user)
setAdjustedUserAsActive()
registerForPush()