aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-09-11 18:13:41 -0600
committerIván Ávalos <avalos@disroot.org>2023-09-11 18:13:41 -0600
commita67f975287f9800c7754497949e8837fb0e1e77c (patch)
tree3d9ffc5a16638ce0acfa8229bd64a13dd12e5ec1 /shared
parent55c1f26f70ae02dfdad215c0c1830ebfce76a0e5 (diff)
downloadetbsa-trackermap-mobile-a67f975287f9800c7754497949e8837fb0e1e77c.tar.gz
etbsa-trackermap-mobile-a67f975287f9800c7754497949e8837fb0e1e77c.tar.bz2
etbsa-trackermap-mobile-a67f975287f9800c7754497949e8837fb0e1e77c.zip
[shared] Fetch session again before logout
Diffstat (limited to 'shared')
-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,")) {