Description
These links are special and should be handled via in-app actions rather than by opening them as a regular URL in the system browser.
There is a separate issue #222 for handling matrix.to
links to a specific Event, which is much more complicated.
Implementation
Currently, Robrix just ignores matrix.to
links that are clicked on, as seen in the code here:
robrix/src/home/room_screen.rs
Lines 857 to 868 in 61f4994
Note that issue #84 already covers one specific case of this: links to Users, which should be displayed as a special UserTag
widget.
This issue covers one other type of matrix.to
links:
- Rooms via alias (e.g.,
https://matrix.to/#/#matrix:matrix.org
), and rooms by ID (e.g.,https://matrix.to/#/!cURbafjkfsMDVwdRDQ:matrix.org
)
Links to a room
We should create a RoomTag
widget similar to the UserTag
widget mentioned above, which looks like this in Element:
Upon click, if the current user has already joined the room, we simply open that room's timeline view.
However, if the user has not yet joined that room, Robrix should open a preview view of the room that shows the last few messages
Metadata
Metadata
Assignees
Type
Projects
Status