Skip to content

feat: [PBE-1477] - User block feature #1274 #1311

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

Closed
wants to merge 22 commits into from
Closed

Conversation

itsmeadi
Copy link
Contributor

CLA

  • I have signed the Stream CLA (required).
  • Code changes are tested

Description of the changes, What, Why and How?

Added SDK support for use blocking feature

Changelog

Copy link
Contributor

github-actions bot commented May 30, 2024

Size Change: +1.09 kB (+0.29%)

Total Size: 371 kB

Filename Size Change
dist/browser.es.js 80.2 kB +247 B (+0.31%)
dist/browser.full-bundle.min.js 48.3 kB +89 B (+0.18%)
dist/browser.js 81.2 kB +252 B (+0.31%)
dist/index.es.js 80.2 kB +247 B (+0.31%)
dist/index.js 81.2 kB +252 B (+0.31%)

compressed-size-action

src/client.ts Outdated
});
}
async unBlockUser(blockedUserID: string, userID?: string) {
return await this.post<StreamChatGenerics>(this.baseURL + '/users/unblock', {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be

this.post<UnblockUserAPIResponse>(...)

src/client.ts Outdated

async getBlockedUsers(user_id?: string) {
return await this.get<GetBlockedUsersResponse>(this.baseURL + '/users/block', {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change GetBlockedUsersResponse to GetBlockedUsersAPIResponse? Same for BlockUserResponse

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