Adjust wording

This commit is contained in:
Eric Eastwood 2024-06-12 18:25:20 -05:00
parent 5243a30e00
commit d5929f15af
2 changed files with 4 additions and 3 deletions

View file

@ -526,8 +526,8 @@ class SlidingSyncHandler:
last_activity_in_room_map[room_id] = event_pos.stream
else:
# Otherwise, if the user left/banned from the room, they shouldn't see
# past that point. (same for invites/knocks)
# Otherwise, if the user has left/been invited/knocked/been banned from
# a room, they shouldn't see anything past that point.
last_activity_in_room_map[room_id] = room_for_user.event_pos.stream
return sorted(

View file

@ -1189,7 +1189,8 @@ class SortRoomsTestCase(HomeserverTestCase):
)
def test_activity_after_xxx(self, room1_membership: Membership) -> None:
"""
When someone is invited to a room, they shouldn't take anything into account after the invite.
When someone has left/been invited/knocked/been banned from a room, they
shouldn't take anything into account after that membership event.
"""
user1_id = self.register_user("user1", "pass")
user1_tok = self.login(user1_id, "pass")