Jared icon indicating copy to clipboard operation
Jared copied to clipboard

Jared does not trigger webhook for all messages

Open paul-brenner opened this issue 1 year ago • 2 comments

Jared only triggers a webhook for some messages. I believe this is because in MacOS versions from the last few years, Apple has started hiding more of the details of the messages in the encrypted AttributeBody column leaving the text column as None. I'm thinking somewhere around here that blank text column is causing Jared to ignore those messages.

This Reddit Thread has multiple options of how to handle encrypted messages. Probably the most relevant to Jared would be this solution in objective C.

I'm going to try some methods to work around this since all I'm really trying to do is get the GUID for each message sent by triggering Jared via API. But I'm raising it incase anyone else is confused or if @ZekeSnider has already encountered this and has some helpful insight to share about why the solutions I'm linking to may fail.

paul-brenner avatar Oct 30 '23 06:10 paul-brenner

Thanks for filing the issue! I had not run Jared on the latest version of Ventura or Sonoma, so this has probably been an issue for a while. Thanks for linking the obj-c code, I will integrate it when I get a chance.

ZekeSnider avatar Oct 31 '23 20:10 ZekeSnider

I wanted API calls to Jared to return details about the resulting message Jared sends (specifically that message's guid), so I hacked a version that does that (which required making the above mentioned changes to decode AttributeBody). Mostly I hijacked the script and ideas from this repository which the author of that SO answer (@stephancasas) created. I'm pretty new to swift and this is my first time doing anything with macos apps, so I'm not sure that I'm capable of creating a clean PR that you would actually want to merge.

But if you think there would be value in seeing what I did to see if there is anything worth salvaging, I'll create the PR.

paul-brenner avatar Nov 27 '23 01:11 paul-brenner