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(sdk&ffi): report room api #4713

Merged
merged 4 commits into from
Feb 26, 2025
Merged

Conversation

hanadi92
Copy link
Contributor

@hanadi92 hanadi92 commented Feb 25, 2025

solves this #4681

Signed-off-by: @hanadi92 hanadi.tamimi@gmail.com

Signed-off-by: hanadi92 <hanadi.tamimi@gmail.com>
Signed-off-by: hanadi92 <hanadi.tamimi@gmail.com>
@hanadi92 hanadi92 requested a review from a team as a code owner February 25, 2025 12:38
@hanadi92 hanadi92 requested review from Hywan and removed request for a team February 25, 2025 12:38
Signed-off-by: hanadi92 <hanadi.tamimi@gmail.com>
Signed-off-by: hanadi92 <hanadi.tamimi@gmail.com>
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.98%. Comparing base (0819ab1) to head (8d9b888).
Report is 31 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4713   +/-   ##
=======================================
  Coverage   85.97%   85.98%           
=======================================
  Files         290      290           
  Lines       34065    34069    +4     
=======================================
+ Hits        29288    29294    +6     
+ Misses       4777     4775    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Hywan Hywan left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!
I've a renaming suggestion but everything else looks sane to me.

/// # Errors
///
/// Returns an error if the room is not found or on rate limit
pub async fn report_room(
Copy link
Member

Choose a reason for hiding this comment

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

I think the method name should be report, thoughts?

Copy link
Member

Choose a reason for hiding this comment

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

Could be ambiguous with respect to reporting a user?

Copy link
Member

Choose a reason for hiding this comment

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

Hmm indeed. Let's keep report_room then.

/// # Errors
///
/// Returns an error if the room is not found or on rate limit
pub async fn report_room(
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

@Hywan Hywan merged commit 7dba05f into matrix-org:main Feb 26, 2025
42 checks passed
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.

3 participants