Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore unknown fields in push V2 json #1328

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

bemusementpark
Copy link

@bemusementpark bemusementpark commented Sep 21, 2023

This PR fixes an issue where push notifications were not showing the message content in the notification drawer.

Screenshot 2023-09-21 at 8 09 45 pm
Invalid push notification
    kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 137: Encountered an unknown key 't' at path: $.n
    Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.
    JSON input: {"@": "...", "#": "...", "n": 0, "t": ..., "z": ..., "l": ...}
    at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)

@bemusementpark bemusementpark merged commit e124d44 into oxen-io:master Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants