forked from GitHub-Mirror/riotX-android
Quick Fix / DI crash when not logged in
This commit is contained in:
parent
0c0ef38b4f
commit
33f17e4c5c
@ -92,6 +92,7 @@ class VectorFirebaseMessagingService : FirebaseMessagingService() {
|
||||
* you retrieve the token.
|
||||
*/
|
||||
override fun onNewToken(refreshedToken: String?) {
|
||||
if (Matrix.getInstance().currentSession == null) return
|
||||
Timber.i("onNewToken: FCM Token has been updated")
|
||||
FcmHelper.storeFcmToken(this, refreshedToken)
|
||||
if (refreshedToken == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user