aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-09-16 01:53:18 -0600
committerIván Ávalos <avalos@disroot.org>2023-09-16 01:53:18 -0600
commit97fee2befcfcbcaa4263e4795680f46bf18d988d (patch)
treece6257c7e57deab1ef03d73cecb5da8a1a987d68 /shared/src/commonMain/kotlin/mx
parent073e78859724a122233f6349592a3e6c10f05ed1 (diff)
parent6c69520fc2a968cb27d1f751f34a123205936567 (diff)
downloadetbsa-trackermap-mobile-97fee2befcfcbcaa4263e4795680f46bf18d988d.tar.gz
etbsa-trackermap-mobile-97fee2befcfcbcaa4263e4795680f46bf18d988d.tar.bz2
etbsa-trackermap-mobile-97fee2befcfcbcaa4263e4795680f46bf18d988d.zip
Merged upstream
Diffstat (limited to 'shared/src/commonMain/kotlin/mx')
-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,")) {