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 | 95d5a3e91920050af6c6d9b3f32384fd8951151b (patch) | |
tree | cd6250e96851ec44b8e354559b4d02742004d8c1 /shared/src/commonMain | |
parent | abcf0ba873fb28f8a8ecf773178da7b1f0f4401f (diff) | |
download | etbsa-trackermap-mobile-95d5a3e91920050af6c6d9b3f32384fd8951151b.tar.gz etbsa-trackermap-mobile-95d5a3e91920050af6c6d9b3f32384fd8951151b.tar.bz2 etbsa-trackermap-mobile-95d5a3e91920050af6c6d9b3f32384fd8951151b.zip |
Fixed notification token registration
Diffstat (limited to 'shared/src/commonMain')
-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") } |