Closed Demolemon11 closed 1 week ago
lol, well yes, this issue is not nearly as simple as just inserting a call to set_displayed_room()
. I would definitely expect that to panic. Take a look at how show and hide timeline functions work, specifically how we handle the TimelineUiState
.
Not to mention that there are other very complex cases here:
Once you understand the requirements for this, and how timeline state is managed, you may be in a better position to tackle part of this issue, e.g., the simple case where we already know about the room and the user has joined it.
Closing for now; feel free to open a new PR that properly implements a smaller subset of the above-listed features.
Run Robrix without entering any other rooms, only entering the room with a message that contains
OwnedRoomId
link sent by someone, click on the link to enter and this will work well.Otherwise, robrix will panic if you enter any other rooms before that.
At the moment I have not dealt with
alias
links yet.This will work: 2024-11-11_14-35-47.webm
This will panic: 2024-11-11_14-36-27.webm