Skip to content

[BUG] typing command fails with 'any;-;' chat identifier prefix #51

@claww13

Description

@claww13

Description

imsg typing fails with "Chat not found" when the chat.db uses any;-; prefix instead of iMessage;-; in the chat identifier/guid.

Steps to Reproduce

  1. Have a chat where the DB stores any;-;+phonenumber as the guid (common on Apple Silicon Macs)
  2. Run: imsg typing --to +phonenumber --duration 3s
  3. Also fails with: imsg typing --chat-id 2 --duration 3s

Expected

Typing indicator should work regardless of the service prefix in the chat identifier.

Actual

typingIndicatorFailed("Chat not found for identifier: iMessage;-;+971565061013. Make sure Messages.app has an active conversation with this contact.")

Investigation

The DB has:

SELECT ROWID, chat_identifier, guid FROM chat;
-- 2|+971565061013|any;-;+971565061013|iMessage

But the typing command constructs iMessage;-;+971565061013 when looking up the chat in IMCore. AppleScript confirms the chat exists as any;-;+971565061013.

Note: imsg react works fine on the same chat (uses different lookup mechanism).

Environment

  • imsg v0.5.0
  • macOS 15.3 (Sequoia) arm64
  • Messages.app running with active conversation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions