Skip to content

Commit

Permalink
feat: Enable sorting by specific field in GetMessageMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmani committed Nov 17, 2023
1 parent 8a47c8d commit fe5f602
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,15 +302,11 @@ func (c *Client) GetMessageMetadataPage(ctx context.Context, page, pageSize int,

Page int
PageSize int

Sort string
}{
MessageFilter: filter,

Page: page,
PageSize: pageSize,

Sort: "ID",
}

for {
Expand Down
1 change: 1 addition & 0 deletions message_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type MessageFilter struct {
ExternalID string `json:",omitempty"`
LabelID string `json:",omitempty"`
EndID string `json:",omitempty"`
Sort string `json:",omitempty"`
Desc Bool
}

Expand Down

0 comments on commit fe5f602

Please sign in to comment.