mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 11:48:51 +03:00
Quick Fix / DI crash when not logged in
This commit is contained in:
parent
0c0ef38b4f
commit
33f17e4c5c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue