-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
A-archive-room-viewThe view to look at a room day by day in the archiveThe view to look at a room day by day in the archiveT-EnhancementNew feature or requestNew feature or request
Milestone
Description
Follow tombstone and predecessor history.
In order to go backwards properly:
- Fetch the
org.matrix.msc3946.room_predecessor
state event in the room (fallback to predecessor value fromm.room.create
state event) Do a/timestamp_to_event?dir=b&ts=<before the create event>
to see if any history was imported in the room and follow that first- No longer necessary because MSC2716 wasn't used for Gitter
- When we exhausted the pagination of the room, go to the
predecessor
room
In order to go forwards properly:
- Fetch the
m.room.tombstone
state event in the room - Should we display events that happened after the
m.room.tombstone
event? Maybe not as the room creator wishes to move to another room. - If we're on a date past the
m.room.tombstone
event, go to thereplacement_room
Do we have to worry about verifying the links here? (make sure the tombstone and predecessor point at each other)
It doesn't seem like it because the archive isn't doing any visual merging and we're just following the hints of the desired room you're viewing.
Dev notes
Test to make sure that follow logic works (see PR):
- Paginating to the beginning of a room without a predecessor will work (just display the empty view)
- There are already tests for this (see "Jumping forwards and backwards")
- Paginating to the beginning of a room with a predecessor will redirect to the predecessor
-
Paginating to the beginning of a room with a predecessor and history imported before the room was created will exhaust the imported history before following the predecessor- No longer necessary because MSC2716 wasn't used for Gitter
- Paginating to the time after the tombstone, will following the tombstone to the
replacement_room
Test to make sure we can still view all of the messages in the room:
- Test to make sure you can view messages on the day that tombstone happened
- Test to make sure you can view the first message in the room
Metadata
Metadata
Assignees
Labels
A-archive-room-viewThe view to look at a room day by day in the archiveThe view to look at a room day by day in the archiveT-EnhancementNew feature or requestNew feature or request