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

Support for Sending & Displaying Rich Links from BlueBubbles #210

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

joshuafhiggins
Copy link
Contributor

Resolves #183

Adds support for sending messages with rich link data, by setting a flag that BlueBubbles forwards with the private-api for iMessage to scan the text for a link to include rich link data with. When receiving a message from BB with rich link data, the payloadData field in a message's JSON is filled out, but this JSON is hard to structure and parse (coming straight from the iMessage DB). The BB app parses this on the client in Dart in order to make it usable, see payload_data.dart. Instead, I opted to use a library to fetch the OpenGraph metadata for the link sent, as how iMessage would, and fill out the struct that way. Images that BB sends as attachments are still used for the rich link.

This reverts commit ee5cf0e, reversing
changes made to 4a4b4fb.
@dltacube dltacube self-requested a review April 22, 2024 14:01
@joshuafhiggins joshuafhiggins marked this pull request as draft May 11, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Shared links sometimes generate attachment with message
3 participants