aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-16 20:38:01 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-16 20:38:01 -0600
commit454d387736c4ed77340473b020449c0dbae9331f (patch)
treecd6250e96851ec44b8e354559b4d02742004d8c1 /shared/src/commonMain/kotlin
parentf88add3dbf4cafb39b8720efdecb53087e2bc285 (diff)
downloadetbsa-trackermap-mobile-454d387736c4ed77340473b020449c0dbae9331f.tar.gz
etbsa-trackermap-mobile-454d387736c4ed77340473b020449c0dbae9331f.tar.bz2
etbsa-trackermap-mobile-454d387736c4ed77340473b020449c0dbae9331f.zip
Fixed notification token registration
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 237f1a3..2ce4dc6 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
@@ -95,7 +95,7 @@ class SessionController(
if (tokens == "null" || !tokens.contains(token)) {
if (tokens == "null") {
attributes["notificationTokens"] = JsonPrimitive(token)
- } else if (tokens.contains(token)) {
+ } else if (!tokens.contains(token)) {
attributes["notificationTokens"] = JsonPrimitive("$tokens,$token")
}