element-hq / element-ios

A glossy Matrix collaboration client for iOS
https://element.io
GNU Affero General Public License v3.0
1.73k stars 493 forks source link

matrix.to and iOS permalinks mismatch #7572

Closed ghost closed 1 year ago

ghost commented 1 year ago

Steps to reproduce

  1. Where are you starting? What can you see?
  2. What do you click?
  3. More steps…

Outcome

What did you expect?

matrix.to generates permalink in the following format: https://matrix.to/#/@name:domain.example I expected the iOS app to use the same format for it's Invite links generator.

What happened instead?

No matter if I specify the default matrix.to or a custom instance in the iOS build settings, the app adds an extra part to the link, so its https://matrix.to/#**/user/**@name:domain.example

I'm not getting how can I change the generated link for the iOS build to remove this unneeded /user entry. Would appreciate an advice.

Your phone model

No response

Operating system version

No response

Application version

No response

Homeserver

No response

Will you send logs?

No

Velin92 commented 1 year ago

The value seems to be actually handled by the Matrix iOS SDK here: https://github.com/matrix-org/matrix-ios-sdk/blob/43cf8b34b5978c0180626db6ad978f6c3b9ca822/MatrixSDK/Utils/MXTools.m#L666

ghost commented 1 year ago

@Velin92 thanks for your help. It's really surprising Matrix iOS SDK adds /user to links by design, it affects "Invite Friends" option for all iOS devices, no matter which matrix.to intance is used.

Velin92 commented 1 year ago

No problem! Can I close the issue? Or you want to actually report a specific issue regarding this permalink? If so could you provide the steps to reproduce it and the expected/received outcome?

ghost commented 1 year ago

As it's caused by Matrix SDK, I reported the issue there. It's being easily reproduced by trying to visit the invitation permalink created in iOS app.

Closing it