mirror of
https://github.com/element-hq/synapse
synced 2024-06-30 16:03:32 +00:00
Adjust wording
This commit is contained in:
parent
5243a30e00
commit
d5929f15af
|
@ -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(
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue