Skip to content

fix: parse binary fields in Quote - #553

Merged
boxdot merged 2 commits into
boxdot:mainfrom
khyperia:quote-binary-aci
Jul 11, 2026
Merged

fix: parse binary fields in Quote#553
boxdot merged 2 commits into
boxdot:mainfrom
khyperia:quote-binary-aci

Conversation

@khyperia

Copy link
Copy Markdown
Contributor

see also: #504

On modern clients, Quote::author_aci is None, with Quote::author_aci_binary being where the data lives. The logic of Message::from_quote caused these "modern quotes" to be dropped and not displayed. Instead, use parse_uuid to parse them, checking both Quote::author_aci_binary and Quote::author_aci.

Also, in outgoing messages, use Quote::author_aci_binary instead of Quote::author_aci, to be modern ourselves too. (We already do this for reactions)

@boxdot boxdot left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@boxdot
boxdot enabled auto-merge (squash) July 11, 2026 17:45
@boxdot
boxdot merged commit 1b546d7 into boxdot:main Jul 11, 2026
10 checks passed
@khyperia
khyperia deleted the quote-binary-aci branch July 18, 2026 08:24
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