matrix-org / matrix.to

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

Properly pass vias to Element clients #271

Closed deepbluev7 closed 2 years ago

deepbluev7 commented 2 years ago

Should fix joining rooms by roomid via matrix.to.

Fixes https://github.com/matrix-org/matrix.to/issues/235

Signed-off-by: Nicolas Werner nicolas.werner@hotmail.de

THIS IS ENTIRELY UNTESTED SINCE I DON'T HAVE AN ELEMENT TO TEST WITH

deepbluev7 commented 2 years ago

It seems like it should support it: https://github.com/matrix-org/matrix-react-sdk/blob/d87cfae0c97f53097f37533be8f66606aa55912b/src/utils/permalinks/ElementPermalinkConstructor.ts#L65

turt2live commented 2 years ago

rooms appear to work, but permalinks result in the lovely "Failed to load timeline position" dialog. That's probably just a timing bug though.