mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-01 18:22:47 +00:00
c5a878249b
A slash is valid in the local part of a user id, but in a permalink it also separates the identifier from an event id, so the SDK could not tell the two apart and the link fell back to opening matrix.to in a browser. Only a user id can start with an @, so recover it before handing the URI to the SDK, and only when the identifier really contains a slash so every other permalink keeps taking the same path.