aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-02-20 00:45:53 -0600
committerIván Ávalos <avalos@disroot.org>2022-02-20 00:45:53 -0600
commit13427fcf3975e55bea6ce089e741d401daed4ea4 (patch)
treedf63dc756f5d07a8a9321665b75dbc30c5749c73
parent23d9023ff79ea6fe84c74174c06d8c829bee9f4d (diff)
parent5b7c9e26f72ca005d17a196a186d41631c08cc55 (diff)
downloadetbsa-trackermap-mobile-13427fcf3975e55bea6ce089e741d401daed4ea4.tar.gz
etbsa-trackermap-mobile-13427fcf3975e55bea6ce089e741d401daed4ea4.tar.bz2
etbsa-trackermap-mobile-13427fcf3975e55bea6ce089e741d401daed4ea4.zip
Merge remote-tracking branch 'refs/remotes/upstream/main'
-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 48352bf..0faaa72 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
@@ -140,7 +140,7 @@ class SessionController(
try {
userFlow.value?.let { user ->
val attributes = user.attributes.toMutableMap()
- attributes["notificationTokens"].toString().let { tokens ->
+ attributes["notificationTokens"]?.content?.let { tokens ->
if (tokens.contains("$token,")) {
attributes["notificationTokens"] =
JsonPrimitive(token.replace("$token,", ""))