feat(ios): expose contentTypes include-filter on message query methods#3274
feat(ios): expose contentTypes include-filter on message query methods#3274
Conversation
…sages/countMessages The FfiListMessagesOptions.contentTypes field was already supported by the Rust FFI layer but was never wired through in the Swift SDK. The excludeContentTypes parameter was exposed, but the include-filter was always hardcoded to nil. This adds a contentTypes: [StandardContentType]? parameter (defaulting to nil) to messages(), messagesWithReactions(), enrichedMessages(), and countMessages() on Group, Dm, and Conversation. The parameter is passed through to FfiListMessagesOptions.contentTypes. This is fully backward-compatible — all existing call sites continue to work unchanged since the new parameter defaults to nil. Example usage: // Get only text messages let texts = try await group.messages(contentTypes: [.text]) // Get only custom/unknown content types let custom = try await dm.messages(contentTypes: [.unknown])
|
Claude finished @yewreeka's task —— View job PR Review CompleteTodo List
Review FeedbackReview Date: March 4, 2026, 06:03 UTC ✅ Code QualityThe implementation is clean, consistent, and follows existing patterns perfectly. The ✅ Implementation ConsistencyAll three files (
✅ No Bugs Detected
✅ Performance & Security
|
Summary
The
FfiListMessagesOptions.contentTypesfield is fully supported by the Rust FFI layer but was never wired through in the Swift SDK. TheexcludeContentTypesparameter was exposed, but the include-filter was always hardcoded tonil.Changes
Adds a
contentTypes: [StandardContentType]? = nilparameter to the following methods onGroup,Dm, andConversation:messages()messagesWithReactions()enrichedMessages()countMessages()The parameter is passed through to
FfiListMessagesOptions.contentTypes.Backward Compatibility
Fully backward-compatible — all existing call sites continue to work unchanged since the new parameter defaults to
nil.Example Usage
Note
Expose
contentTypesfilter parameter on iOS message query methodsAdds an optional
contentTypes: [StandardContentType]?parameter tomessages,messagesWithReactions,enrichedMessages, andcountMessagesonGroup,Dm, andConversation. When provided, the parameter is forwarded toFfiListMessagesOptionsto filter results by content type; passingnilpreserves existing behavior.Macroscope summarized 67422e9.