diff --git a/CHANGELOG.md b/CHANGELOG.md index b5c88cc..a937636 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Unreleased +- fix: confirm standard tapback reaction selection in Messages automation (#53, thanks @PeterRosdahl) - fix: gate RPC watch reaction metadata on `include_reactions`, not `attachments` (#82) - fix: dedupe URL balloon preview duplicates in watch stream without cross-chat/schema regressions (#64, thanks @lesaai) - fix: remove non-functional `typing` command and related RPC methods diff --git a/Sources/imsg/Commands/ReactCommand.swift b/Sources/imsg/Commands/ReactCommand.swift index e6b184b..ec9c138 100644 --- a/Sources/imsg/Commands/ReactCommand.swift +++ b/Sources/imsg/Commands/ReactCommand.swift @@ -164,6 +164,8 @@ enum ReactCommand { keystroke "t" using command down delay 0.2 keystroke reactionKey + delay 0.1 + key code 36 end tell end tell end run diff --git a/Tests/imsgTests/ReactCommandTests.swift b/Tests/imsgTests/ReactCommandTests.swift index c79b006..d48644d 100644 --- a/Tests/imsgTests/ReactCommandTests.swift +++ b/Tests/imsgTests/ReactCommandTests.swift @@ -53,6 +53,7 @@ func reactCommandBuildsParameterizedAppleScriptForStandardTapback() async throws #expect(capturedScript.contains("keystroke \"f\" using command down")) #expect(capturedScript.contains("set targetChat to chat id chatGUID")) #expect(capturedScript.contains("keystroke reactionKey")) + #expect(capturedScript.contains("keystroke reactionKey\n delay 0.1\n key code 36")) #expect(capturedScript.contains("chat123") == false) }