Files
openclaw/extensions
Roy Martin ba76cca927 fix(bluebubbles): prefer iMessage over SMS when both chats exist
When sending to a handle (phone number) that has both an iMessage and an
SMS chat in BlueBubbles, resolveChatGuidForTarget returned whichever chat
it encountered first in the page. This caused messages to silently
downgrade from iMessage to SMS for recipients who use iMessage, which is
never what the user wants.

The fix tracks iMessage and SMS matches separately and returns the
iMessage match when available, falling back to SMS only when no iMessage
chat exists for the handle. Applies to both direct handle matches (chat
guid contains the handle) and participant matches.

Also short-circuits page iteration once an iMessage match is found.

Tests: 5 new unit tests covering iMessage preference, SMS fallback, and
participant-match preference.
2026-04-06 02:12:55 -07:00
..
2026-04-05 17:17:16 +01:00
2026-04-05 11:19:05 +01:00