aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src/commonMain/kotlin')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
index 0faaa72..a63bba2 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
@@ -138,7 +138,7 @@ class SessionController(
private suspend fun unregisterFcmToken(token: String) {
print("Unregister FCM token: $token\n")
try {
- userFlow.value?.let { user ->
+ sessionApi.sessionGet().let { user ->
val attributes = user.attributes.toMutableMap()
attributes["notificationTokens"]?.content?.let { tokens ->
if (tokens.contains("$token,")) {