Closed rollingonchrome closed 4 months ago
Several other send methods are already using this conditional, like the SendFile
:
https://github.com/mautrix/imessage/blob/25aaae37d11db8c77ef77693e84ae6ecc847e1f8/imessage/bluebubbles/api.go#L979C1-L985C3
The conditional in the SendMessage
just needs updated to match the others:
https://github.com/mautrix/imessage/blob/25aaae37d11db8c77ef77693e84ae6ecc847e1f8/imessage/bluebubbles/api.go#L918C1-L924C3
Closed with #189
iMessages sent using the BlueBubbles connector appear to send via AppleScript. This causes those messages to fail to send in Business Chats and generates the following example error in the BlueBubbles server.
Potentially add a conditional to send via Private API under certain circumstances.
Error message:
Command failed: osascript -e "tell application \"Messages\"" -e "set targetService to 1st account whose service type = iMessage" -e "set targetBuddy to participant \"urn:biz:b15ed773-9eed-11e7-baa2-7b88b04daa8e\" of targetService" -e "send \"[MESSAGE CONTENTS]\" to targetBuddy" -e "end tell" 186:225: execution error: Messages got an error: Can’t get participant id "20CCA093-0FE3-45E2-803E-4FF471175B25:urn:biz:b15ed773-9eed-11e7-baa2-7b88b04daa8e". (-1728)