matrix-org / matrix.to

A simple stateless privacy-protecting URL redirecting service for Matrix
http://matrix.to
Apache License 2.0
932 stars 199 forks source link

android element:// link does not work #259

Closed AndrewRyanChama closed 2 years ago

AndrewRyanChama commented 2 years ago

For android, the code creates an android link such as element://room%2F%23matrix-dev%3Amatrix.org

Android cannot pick up this url in the intent filter because it relies on the format :/// and since the slash is urlencoded as %2F the entire thingy becomes = room%2F%23matrix-dev%3Amatrix.org which we can't filter for.

https://github.com/matrix-org/matrix.to/blob/main/src/open/clients/Element.js#L79

It seems like removing this urlencode should resolve the issue element://room/#matrix-dev:matrix.org

issue was introduced in #248