diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-16 20:38:01 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-16 20:38:01 -0600 |
commit | 454d387736c4ed77340473b020449c0dbae9331f (patch) | |
tree | cd6250e96851ec44b8e354559b4d02742004d8c1 /shared/src | |
parent | f88add3dbf4cafb39b8720efdecb53087e2bc285 (diff) | |
download | etbsa-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')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt | 2 |
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") } |