cinny icon indicating copy to clipboard operation
cinny copied to clipboard

Add custom link handlers

Open Airyzz opened this issue 2 years ago • 1 comments

Description

Adds the ability to add a custom handler for links. Allows for handling matrix.to requests inside Cinny as per #778. It also attempts to invoke a function through Tauri, so Cinny desktop can register its own handlers

It also opens links in a new tab by default

Type of change

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings

Related: https://github.com/cinnyapp/cinny-desktop/pull/56

Airyzz avatar Aug 28 '22 10:08 Airyzz

If https://github.com/cinnyapp/cinny/pull/411 gets merged we can use this implementation for navigating to the correct room

Airyzz avatar Sep 09 '22 04:09 Airyzz

#411 is closed beacause of #1633 as we have used react-router for navigation. Closing this one as it depend on #411.

kfiven avatar May 22 '24 12:05 kfiven