-
Notifications
You must be signed in to change notification settings - Fork 258
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): Separate RoomState::Ban
from RoomState::Left
.
#4414
Conversation
184ce24
to
0d2eaf5
Compare
if self.contains(Self::KNOCKED) { | ||
states.push(RoomState::Knocked); | ||
} |
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.
Oops, this was never added when the behaviour changed before. I added a test including these 2 new cases.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4414 +/- ##
==========================================
+ Coverage 85.30% 85.31% +0.01%
==========================================
Files 283 283
Lines 31435 31442 +7
==========================================
+ Hits 26815 26826 +11
+ Misses 4620 4616 -4 ☔ View full report in Codecov by Sentry. |
399fe21
to
505e809
Compare
@@ -218,14 +218,14 @@ pub enum RoomState { | |||
Invited, | |||
/// The room is in a knocked state. | |||
Knocked, | |||
/// The room is in a banned state. | |||
Ban, |
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.
Can you name this Banned
, for consistency with the other states?
This is needed to tell apart rooms in left and banned state in places like `RoomInfo` or `RoomPreview`. The banned rooms will still count as left rooms in the sync processes.
505e809
to
e33d0db
Compare
This is needed to tell apart rooms in left and banned state in places like
RoomInfo
orRoomPreview
.The banned rooms will still count as left rooms in the sync processes.
Signed-off-by: