Add action to copy permalink #2650

This commit is contained in:
Benoit Marty 2024-04-03 15:36:39 +02:00
parent a65e073aca
commit bf068f4f25
10 changed files with 86 additions and 0 deletions

View file

@ -328,5 +328,12 @@ interface MatrixRoom : Closeable {
*/
fun getWidgetDriver(widgetSettings: MatrixWidgetSettings): Result<MatrixWidgetDriver>
/**
* Get the permalink for the provided [eventId].
* @param eventId The event id to get the permalink for.
* @return The permalink, or a failure.
*/
suspend fun getPermalinkFor(eventId: EventId): Result<String>
override fun close() = destroy()
}