Skip to content

Commit

Permalink
refactor(history): add include custom message type only for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
parfeon committed Nov 14, 2024
1 parent ff99c2d commit 3ba17cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 471 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ - (NSDictionary *)query {
query[@"include_uuid"] = self.includeUUID ? @"true" : @"false";
}

// `includeCustomMessageType` available only for v3 history and history with message actions.
if (self.multipleChannels || self.includeMessageActions) {
query[@"include_custom_message_type"] = self.includeCustomMessageType ? @"true" : @"false";
}

if (!self.multipleChannels && self.includeTimeToken) query[@"include_token"] = @"true";
if (self.includeCustomMessageType) query[@"include_custom_message_type"] = @"true";
if (self.arbitraryQueryParameters) [query addEntriesFromDictionary:self.arbitraryQueryParameters];

return query;
Expand Down
Loading

0 comments on commit 3ba17cd

Please sign in to comment.