mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
sliding sync: also mark kicked/banned users as leaving a room
This commit is contained in:
@@ -528,7 +528,7 @@ impl BaseClient {
|
||||
if let AnySyncStateEvent::RoomMember(member) = &event {
|
||||
// If this event updates the current user's membership, record that in the
|
||||
// room_info.
|
||||
if member.sender() == meta.user_id && member.state_key() == meta.user_id.as_str() {
|
||||
if member.state_key() == meta.user_id.as_str() {
|
||||
room_info.set_state(member.membership().into());
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user