Closed cnuss closed 5 months ago
buy in large, lots of guesswork on the field mapping. I think it'd be worth firing up sh-imessage
in mac-nosip
mode and debug logging actual to find out what we expect to toss in
So I am closing this for now because it seemed to work for me anyway in one chat I had. If someone else has more problems, we can open another issue in the future.
@cnuss I was just looking at this function and noticed it is already filled out, but I am not sure it is correct (even though it seems to be working).
Specifically, I am thinking about the sender and the
IsFromMe
field of theimessage.ReadReceipt
object below:From what I have seen, I can't prove that the
Handle
is always the sender of a message. I'd have to test this again, but I think once I found the Handle was the recipient and I was very confused, hence my TODO in the helper conversion function:I am also puzzled at the
IsFromMe
set totrue
all the time, I don't think BBs would send the webhook when you read your own message.And while I am thinking about it, what does BBs do for an iMessage group chat? The event from BBs doesn't say who read it, so you are looking for who sent the last message. At the time it sends the event, the other person likely hasn't yet sent a reply, so I guess you will always get your own message. If you are in a group chat, what happens when one of the others has read your message, but no one else? Does BBs suddenly include the other person then?
2024-01-17T12:46:50-06:00 TRC handleChatReadStatusChanged component=bluebubbles data={"chatGuid":"iMessage;-;example@gmail.com","read":true}
TL;DR
IsFromMe
always true