Favorite : rework and add tests
This commit is contained in:
parent
b15597509d
commit
d9017a098c
21 changed files with 454 additions and 144 deletions
|
|
@ -58,6 +58,9 @@ interface MatrixRoom : Closeable {
|
|||
|
||||
val roomInfoFlow: Flow<MatrixRoomInfo>
|
||||
|
||||
/**
|
||||
* The current notable tags as a Flow.
|
||||
*/
|
||||
val notableTagsFlow: Flow<RoomNotableTags>
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@
|
|||
|
||||
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.
|
||||
*/
|
||||
data class RoomNotableTags(
|
||||
val isFavorite: Boolean,
|
||||
val isFavorite: Boolean = false,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue