Skip to content

Permalink timeline #2759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 55 commits into from
Apr 30, 2024
Merged

Permalink timeline #2759

merged 55 commits into from
Apr 30, 2024

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Apr 26, 2024

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Handle permalink navigation to Event.
Internal room and event navigation is fully supported with this changes. External link navigation will be handled separately.

Clicking on a replied Event preview navigate to the original Event.

Motivation and context

Permalink navigation

Screenshots / GIFs

See recorded ones

Tests

  • Send some Event permalink to a room and click on those links. The navigation should be properly handled.
  • Forward pagination is supported to, until the live is reached.

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

ganfra and others added 28 commits April 16, 2024 21:18
…ward pagination (and remove usage of PaginationStatus)
Copy link
Contributor

github-actions bot commented Apr 26, 2024

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/e1zUUp

@jmartinesp jmartinesp requested a review from a team as a code owner April 29, 2024 10:15
@jmartinesp jmartinesp requested review from jmartinesp and removed request for a team April 29, 2024 10:15
Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in general, I have a few comments but nothing blocking. I'll wait until it's ready for the final review.

fun `test TimelineItemIndexer`() {
val eventIds = mutableListOf<EventId>()
val data = listOf(
aTimelineItemEvent().also { eventIds.add(it.eventId!!) },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make sure all ids used here don't match? They're random, so there's not much of a chance of it happening, so up to you.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I guess it's fine. I preferred to keep the randomness and store ids in eventIds, another solution would have been to create AN_EVENT_ID_3 and AN_EVENT_ID_4. Let's revisit later if it's worth it.


/**
* This timeline post-processor removes the room creation event and the self-join event from the timeline for DMs.
* This timeline post-processor removes the room creation event and the self-join event from the timeline for DMs
* or add the RoomBeginning item for non DM room.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd have split this in 2 processors, but it's no big deal.

@bmarty
Copy link
Member Author

bmarty commented Apr 29, 2024

I think there is an issue with enterSpecialMode, which is called on the current timeline here:

But then message edition or reply is invoked on the live timeline, in RustMatrixRoom.

RustMatrixRoom.enterSpecialMode is not used anymore, which is part of the problem.

I think special modes, and so reply and edition have to occurs on the current timeline, because the Event have to be known. But we will not have local echo, which are only handled by the live timeline.

@bmarty bmarty added the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Apr 29, 2024
@github-actions github-actions bot removed the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Apr 29, 2024
@bmarty bmarty added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 29, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 29, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@bmarty bmarty merged commit ae8ee87 into develop Apr 30, 2024
14 of 16 checks passed
@bmarty bmarty deleted the feature/fga/permalink_timeline branch April 30, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants