Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add message history #278

Merged
merged 2 commits into from
May 24, 2024
Merged

feat: add message history #278

merged 2 commits into from
May 24, 2024

Conversation

shaljam
Copy link
Contributor

@shaljam shaljam commented May 23, 2024

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

Add ability to query message history.

}

func (c *Client) QueryMessageHistory(ctx context.Context, request QueryMessageHistoryRequest) (*QueryMessageHistoryResponse, error) {
if request.Filter == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: check for len() == 0 here instead of nil since map[string]any{} can be non-nil with 0 items

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, confused map with slices.

@shaljam shaljam force-pushed the pbe-3774-message-history branch from 577d2f0 to 90b106d Compare May 23, 2024 14:31
@shaljam shaljam merged commit 3104c7e into master May 24, 2024
7 checks passed
@shaljam shaljam deleted the pbe-3774-message-history branch May 24, 2024 08:27
@github-actions github-actions bot mentioned this pull request May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants