-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support Mentions #18
Comments
Just a quick thought, but cross-referencing the number/email with the user's contacts and then searching for the contact's name in the message seems to be the only way to find the mention in the message - albeit with quite a lot of effort required to make it work. |
See #62, this software will not target features outside of the iMessage database. Also, you can type contact names without transforming them into mentions; a string search doesn't have enough context to handle that case. |
The attributedBody does contain the range of text that should be annotated with the mention. If parsing the attributedBody, you should see a list of message parts, and this will contain a part for the mention as well with a corrseponding range. For example, if the text is:
The attributedBody will have three parts inside it: 1st part: And these three will have NSRanges. This also works with multi-part messages. |
Where? I don't see any delimiters in the |
Here is an example of an actual deserialized attributedBody, notice that the second to last part is the mention and has NSRange(84,5) |
I'm part of the bluebubbles team (https://github.com/BlueBubblesApp). Our server uses node and one of our users / contributors made a node package to deserialize these with NSKeyedUnarchiver - https://www.npmjs.com/package/node-typedstream Works great for attributedBody, messageSummaryInfo, and payloadData |
Got it, thanks, this is extremely helpful. |
Tracking support for this and a custom |
iMessage has a feature where you can mention chat participants:
There is only one column in the database that seems related to mentions:
has_unseen_mention
. It is just a boolean column, though, so it contains no data on what or who was mentioned. The binary blob columns also do not seem to have any information out of the ordinary. Thus, I am not sure how to proceed with this feature.The text was updated successfully, but these errors were encountered: