mirror of
https://github.com/element-hq/synapse
synced 2024-09-29 14:42:42 +00:00
Adjust wording
This commit is contained in:
parent
5243a30e00
commit
d5929f15af
2 changed files with 4 additions and 3 deletions
|
@ -526,8 +526,8 @@ class SlidingSyncHandler:
|
||||||
|
|
||||||
last_activity_in_room_map[room_id] = event_pos.stream
|
last_activity_in_room_map[room_id] = event_pos.stream
|
||||||
else:
|
else:
|
||||||
# Otherwise, if the user left/banned from the room, they shouldn't see
|
# Otherwise, if the user has left/been invited/knocked/been banned from
|
||||||
# past that point. (same for invites/knocks)
|
# a room, they shouldn't see anything past that point.
|
||||||
last_activity_in_room_map[room_id] = room_for_user.event_pos.stream
|
last_activity_in_room_map[room_id] = room_for_user.event_pos.stream
|
||||||
|
|
||||||
return sorted(
|
return sorted(
|
||||||
|
|
|
@ -1189,7 +1189,8 @@ class SortRoomsTestCase(HomeserverTestCase):
|
||||||
)
|
)
|
||||||
def test_activity_after_xxx(self, room1_membership: Membership) -> None:
|
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_id = self.register_user("user1", "pass")
|
||||||
user1_tok = self.login(user1_id, "pass")
|
user1_tok = self.login(user1_id, "pass")
|
||||||
|
|
Loading…
Reference in a new issue