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

When reporting a user, use the membership state eventId for the eventId. #8798

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Apr 2, 2024

Complement to #8797.

@bmarty bmarty requested a review from ganfra April 2, 2024 18:46
@bmarty bmarty force-pushed the feature/bma/reportUserStateEvent branch from 7461e51 to 6cd9e6e Compare April 2, 2024 18:48
@@ -1147,7 +1147,22 @@ class TimelineViewModel @AssistedInject constructor(
if (room == null) return
viewModelScope.launch {
val event = try {
room.reportingService().reportContent(action.eventId, -100, action.reason)
if (action.user && action.senderId != null) {
Copy link
Member

Choose a reason for hiding this comment

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

Can you just create a reportUser method to avoid repeating?

@bmarty bmarty merged commit 9b4394b into develop Apr 2, 2024
11 of 12 checks passed
@bmarty bmarty deleted the feature/bma/reportUserStateEvent branch April 2, 2024 20:18
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