-
Notifications
You must be signed in to change notification settings - Fork 226
Feature : Report room #4654
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
Feature : Report room #4654
Conversation
… presentation classes
|
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4654 +/- ##
===========================================
+ Coverage 80.01% 80.11% +0.10%
===========================================
Files 2107 2123 +16
Lines 55838 56235 +397
Branches 6972 7007 +35
===========================================
+ Hits 44678 45052 +374
- Misses 8765 8774 +9
- Partials 2395 2409 +14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
91f11c0
to
2630797
Compare
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.
LGTM, just a few remarks but nothing blocking I think.
...main/kotlin/io/element/android/features/invite/impl/acceptdecline/AcceptDeclineInviteView.kt
Show resolved
Hide resolved
features/invite/api/src/main/kotlin/io/element/android/features/invite/api/InviteData.kt
Show resolved
Hide resolved
...n/kotlin/io/element/android/features/invite/impl/declineandblock/DeclineAndBlockPresenter.kt
Outdated
Show resolved
Hide resolved
if (userIdToBlock != null) { | ||
client | ||
.ignoreUser(userIdToBlock) | ||
.onFailure { return Result.failure(DeclineInvite.Exception.BlockUserFailed) } |
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.
If I am reading this properly, if there is an error here, the room will not be reported, and the user will not be able to do it again since the room has been left successfully. Is it OK?
We should maybe try to report the room, and return the error after?
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 keep this one for later.
.../main/kotlin/io/element/android/features/invite/impl/declineandblock/DeclineAndBlockState.kt
Show resolved
Hide resolved
...es/reportroom/impl/src/main/kotlin/io/element/android/features/reportroom/impl/ReportRoom.kt
Show resolved
Hide resolved
.../impl/src/main/kotlin/io/element/android/features/reportroom/impl/ReportRoomStateProvider.kt
Outdated
Show resolved
Hide resolved
.../impl/src/main/kotlin/io/element/android/features/reportroom/impl/ReportRoomStateProvider.kt
Outdated
Show resolved
Hide resolved
|
Content
This PR allows to report an invite and a room, through different entry points.
For now the feature is disabled, if you want to test you need to override the
MatrixConfiguration.CAN_REPORT_ROOM
.In the future we'll be using this PR in the sdk to check if the api is supported, so we use different flows.
Motivation and context
Closes #4315
Closes #4438
Screenshots / GIFs
Tests
For report room :
For report invite :
Tested devices
Checklist