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

Duplicate "text" field on star gift export #28781

Closed
flexagoon opened this issue Dec 21, 2024 · 0 comments · Fixed by #28782
Closed

Duplicate "text" field on star gift export #28781

flexagoon opened this issue Dec 21, 2024 · 0 comments · Fixed by #28782
Labels

Comments

@flexagoon
Copy link
Contributor

Steps to reproduce

  1. Send a stargift with a message to someone
  2. Export the chat to json

Expected behaviour

The export produces valid json

Actual behaviour

// ...
"action": "send_star_gift",
"gift_id": 5170233102089322756,
"stars": 15,
"is_limited": false,
"is_anonymous": false,
"text": "<GIFT TEXT HERE>",
"text": "",
// ...

The "text" field is duplicated, which isn't valid JSON. this happens because both the stargift text and the message text are serialized into the "text" field.

Operating system

Fedora Silverblue 41

Version of Telegram Desktop

5.9.0

Installation source

Flatpak

Crash ID

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant