Favorite : rework and add tests

This commit is contained in:
ganfra 2024-02-02 14:54:28 +01:00
parent b15597509d
commit d9017a098c
21 changed files with 454 additions and 144 deletions

View file

@ -58,6 +58,9 @@ interface MatrixRoom : Closeable {
val roomInfoFlow: Flow<MatrixRoomInfo>
/**
* The current notable tags as a Flow.
*/
val notableTagsFlow: Flow<RoomNotableTags>
/**

View file

@ -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,
)