mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
feat(share): share user permalinks via to.healthchat.ch
Mention pills keep the matrix.to wire format other clients expect.
This commit is contained in:
+10
@@ -14,6 +14,16 @@ import io.element.android.libraries.matrix.api.core.UserId
|
||||
interface PermalinkBuilder {
|
||||
fun permalinkForUser(userId: UserId): Result<String>
|
||||
fun permalinkForRoomAlias(roomAlias: RoomAlias): Result<String>
|
||||
|
||||
/**
|
||||
* Permalink meant to be shared outside of Matrix, for instance through the system share sheet.
|
||||
* It points to the HealthChat matrix.to deployment, so that recipients who do not have the app
|
||||
* yet are offered HealthChat rather than Element.
|
||||
*
|
||||
* Links embedded in events (mention pills, replies, …) must keep using [permalinkForUser]:
|
||||
* matrix.to is the format other Matrix clients expect on the wire.
|
||||
*/
|
||||
fun sharePermalinkForUser(userId: UserId): Result<String>
|
||||
}
|
||||
|
||||
sealed class PermalinkBuilderError : Throwable() {
|
||||
|
||||
Reference in New Issue
Block a user