createPermalink

abstract fun createPermalink(event: Event, forceMatrixTo: Boolean = false): String?

Creates a permalink for an event. Ex: "https://matrix.to/#/!nbzmcXAqpxBXjAdgoX:matrix.org/$1531497316352799BevdV:matrix.org"

Return

the permalink, or null in case of error

Parameters

event

the event

forceMatrixTo

whether we should force using matrix.to base URL


abstract fun createPermalink(id: String, forceMatrixTo: Boolean = false): String?

Creates a permalink for an id (can be a user Id, etc.). For a roomId, consider using createRoomPermalink Ex: "https://matrix.to/#/@benoit:matrix.org"

Return

the permalink, or null in case of error

Parameters

id

the id

forceMatrixTo

whether we should force using matrix.to base URL


abstract fun createPermalink(    roomId: String,     eventId: String,     forceMatrixTo: Boolean = false): String

Creates a permalink for an event. If you have an event you can use createPermalink Ex: "https://matrix.to/#/!nbzmcXAqpxBXjAdgoX:matrix.org/$1531497316352799BevdV:matrix.org?via=matrix.org"

Return

the permalink

Parameters

roomId

the id of the room

eventId

the id of the event

forceMatrixTo

whether we should force using matrix.to base URL