create Permalink
abstract fun createPermalink(event: Event, forceMatrixTo: Boolean = false): String?
Content copied to clipboard
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
force Matrix To
whether we should force using matrix.to base URL
abstract fun createPermalink(id: String, forceMatrixTo: Boolean = false): String?
Content copied to clipboard
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
force Matrix To
whether we should force using matrix.to base URL
abstract fun createPermalink( roomId: String, eventId: String, forceMatrixTo: Boolean = false): String
Content copied to clipboard
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
room Id
the id of the room
event Id
the id of the event
force Matrix To
whether we should force using matrix.to base URL