Skip to content

[MOD2-818] Add delete_reactions support for ban user#207

Merged
totalimmersion merged 2 commits intomasterfrom
feature/mod2-818-delete-banned-user-reactions-when-pruning-messages
Mar 26, 2026
Merged

[MOD2-818] Add delete_reactions support for ban user#207
totalimmersion merged 2 commits intomasterfrom
feature/mod2-818-delete-banned-user-reactions-when-pruning-messages

Conversation

@totalimmersion
Copy link
Copy Markdown
Contributor

Ticket

Summary

Adds DeleteReactions nullable bool property to BanRequest in the .NET SDK. When set to true, the ban API will delete all reactions by the banned user on other users' messages.

This corresponds to the backend change in https://github.com/GetStream/chat/pull/12495.

Changes

  • src/Models/Moderation.cs: Added DeleteReactions property to BanRequest (auto-serialized as delete_reactions via SnakeCaseNamingStrategy)
  • tests/UserClientTests.cs: Added TestBanUserWithDeleteReactionsAsync test

Checklist

  • The changed code has been covered with unit tests
  • API endpoints are covered with client tests

totalimmersion and others added 2 commits March 26, 2026 13:55
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reaction deletion happens asynchronously via a background task, so we
cannot assert on side-effects immediately. Verify the API accepts the
parameter instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@totalimmersion totalimmersion merged commit f8081aa into master Mar 26, 2026
1 of 2 checks passed
@totalimmersion totalimmersion deleted the feature/mod2-818-delete-banned-user-reactions-when-pruning-messages branch March 26, 2026 16:12
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.

1 participant