Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- fix: apply history filters before limit (#20, thanks @tommybananas)
- fix: flush watch output immediately when stdout is buffered (#43, thanks @ccaum)
- feat: include `thread_originator_guid` in message output (#39, thanks @ruthmade)
- fix: detect groups from `;+;` prefix in guid/identifier for RPC payloads (#42, thanks @shivshil)

## 0.4.0 - 2026-01-07
- feat: surface audio message transcriptions (thanks @antons)
Expand Down
3 changes: 1 addition & 2 deletions Sources/imsg/RPCPayloads.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ func reactionPayload(_ reaction: Reaction) -> [String: Any] {
}

func isGroupHandle(identifier: String, guid: String) -> Bool {
let handle = identifier.isEmpty ? guid : identifier
return handle.contains(";+;") || handle.contains(";-;")
return guid.contains(";+;") || identifier.contains(";+;")
}

func stringParam(_ value: Any?) -> String? {
Expand Down
2 changes: 1 addition & 1 deletion Tests/imsgTests/RPCPayloadsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Testing
@Test
func isGroupHandleFlagsGroup() {
#expect(isGroupHandle(identifier: "iMessage;+;chat123", guid: "") == true)
#expect(isGroupHandle(identifier: "", guid: "iMessage;-;chat999") == true)
#expect(isGroupHandle(identifier: "", guid: "iMessage;-;chat999") == false)
#expect(isGroupHandle(identifier: "+1555", guid: "") == false)
}

Expand Down