-
Notifications
You must be signed in to change notification settings - Fork 254
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(room): add RequestToJoinRoom
subscriptions
#4338
base: main
Are you sure you want to change the base?
Conversation
5d8f036
to
f5d859b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4338 +/- ##
==========================================
- Coverage 85.08% 85.02% -0.07%
==========================================
Files 276 277 +1
Lines 30371 30488 +117
==========================================
+ Hits 25842 25921 +79
- Misses 4529 4567 +38 ☔ View full report in Codecov by Sentry. |
|
||
/// Declines the request to join by banning the user from the room with an | ||
/// optional reason. | ||
pub async fn decline_and_ban(&self, reason: Option<String>) -> Result<(), ClientError> { |
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.
maybe we want a separate ban action, and let the user chain? in the case the user doesn't have the right for both
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.
You mean kick, then ban? Can we ban a user who already left the room?
Also, I'd expect the UI to not display the component that triggers this action rather than controlling trying to workaround the issue here.
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.
Sorry I'm stupid. :D
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
} | ||
|
||
#[matrix_sdk_ffi_macros::export] | ||
impl RequestToJoinActions { |
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.
Missing mark_as_seen
?
Also, add a couple of method to mark requests as seen and retrieve the current ones from the stores and update this observable field.
This struct is an abstraction over a room member or state event with knock membership.
Also add mocks for the `/members` endpoint.
4b60abf
to
e3cd7cc
Compare
Signed-off-by: