Use the new setIsFavorite api

This commit is contained in:
ganfra 2024-02-06 16:04:44 +01:00
parent d9017a098c
commit f3c1eb6738
7 changed files with 28 additions and 27 deletions

View file

@ -156,7 +156,7 @@ interface MatrixRoom : Closeable {
suspend fun reportContent(eventId: EventId, reason: String, blockUserId: UserId?): Result<Unit>
suspend fun updateNotableTags(notableTags: RoomNotableTags): Result<Unit>
suspend fun setIsFavorite(isFavorite: Boolean): Result<Unit>
/**
* Share a location message in the room.

View file

@ -19,7 +19,9 @@ package io.element.android.libraries.matrix.api.room.tags
/**
* Represents the notable tags of a room.
* @param isFavorite true if the room is marked as favorite.
* @param isLowPriority true if the room is marked as low priority.
*/
data class RoomNotableTags(
val isFavorite: Boolean = false,
val isLowPriority: Boolean = false,
)