Use the new setIsFavorite api
This commit is contained in:
parent
d9017a098c
commit
f3c1eb6738
7 changed files with 28 additions and 27 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue