mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 04:15:12 +00:00
Rework some MatrixRoom api and fix rust 'destroyed' crash
This commit is contained in:
+7
-1
@@ -63,7 +63,11 @@ interface MatrixRoom : Closeable {
|
||||
|
||||
val timeline: MatrixTimeline
|
||||
|
||||
fun open(): Result<Unit>
|
||||
fun destroy()
|
||||
|
||||
fun subscribeToSync()
|
||||
|
||||
fun unsubscribeFromSync()
|
||||
|
||||
suspend fun userDisplayName(userId: UserId): Result<String?>
|
||||
|
||||
@@ -133,6 +137,8 @@ interface MatrixRoom : Closeable {
|
||||
zoomLevel: Int? = null,
|
||||
assetType: AssetType? = null,
|
||||
): Result<Unit>
|
||||
|
||||
override fun close() = destroy()
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user