Page MenuHomePhorge

Open user page when clicking on a matrix link to a room member
ClosedPublic

Authored by tusooa on Jun 5 2024, 7:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 4, 2:03 PM
Unknown Object (File)
Mon, Sep 2, 4:06 PM
Unknown Object (File)
Thu, Aug 29, 9:39 AM
Unknown Object (File)
Wed, Aug 28, 6:28 PM
Unknown Object (File)
Wed, Aug 28, 5:01 PM
Unknown Object (File)
Tue, Aug 27, 6:01 PM
Unknown Object (File)
Tue, Aug 27, 6:00 PM
Unknown Object (File)
Tue, Aug 27, 6:00 PM
Subscribers
None

Details

Summary

When clicking on a link, we first check whether it is a link to a user. If it is, we check if it is a room member of the current room. If so, we invoke the user page. Otherwise, open the link as we do for other links.

This behaviour when the pointed-to user is not in the room can be modified in the future to prompt the user to create/open a DM with that user.

Type: add

Test Plan
  • Mention someone in the room. Click the link. Verify that the user page is opened.
  • Mention someone not in the room. Click the link. Verify that the matrix.to link is opened in your browser.

Diff Detail

Repository
rK kazv
Branch
tusooa/stacked
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 60
Build 109: GitLab CI for kazv
Build 108: arc lint + arc unit