mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-02-16 02:22:31 -05:00
For thread permalinks, we start with a /context query that will load the focused event, and maybe a few other in-thread events. In fact, it can also include the thread root event, which was excluded before. Instead, we would get a previous-token for back-paginations, which would be used in /relations. When the request to /relations returns an empty previous token, that means we've reached the start of the thread, and in this case we would manually load the root with /event. We can do better, if the root event is part of the initial /context response: skip the back-paginations altogether, and make sure to include the root event in `init_focus()`.