-
Notifications
You must be signed in to change notification settings - Fork 274
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
Conversation
Signed-off-by: hanadi92 <hanadi.tamimi@gmail.com>
Signed-off-by: hanadi92 <hanadi.tamimi@gmail.com>
Signed-off-by: hanadi92 <hanadi.tamimi@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
There was a problem hiding this 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.
crates/matrix-sdk/src/room/mod.rs
Outdated
/// # Errors | ||
/// | ||
/// Returns an error if the room is not found or on rate limit | ||
pub async fn report_room( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
bindings/matrix-sdk-ffi/src/room.rs
Outdated
/// # Errors | ||
/// | ||
/// Returns an error if the room is not found or on rate limit | ||
pub async fn report_room( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
solves this #4681
Signed-off-by: @hanadi92 hanadi.tamimi@gmail.com