element-hq / riot-android

A glossy Matrix collaboration client for Android
Apache License 2.0
1.4k stars 394 forks source link

Feature/fix infinite restart expired cred #3394

Closed BillCarsonFr closed 4 years ago

BillCarsonFr commented 4 years ago

Fixes #3249 Tested against config with SSO and 3mn expiration.

Riot handles token expiration by 'restarting the app' (exit 0); The issue is that the credentials were cleared from the preferences using apply instead of commit (thus never serialized due to the 'restart')