mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Favorite : rework and add tests
This commit is contained in:
+3
@@ -58,6 +58,9 @@ interface MatrixRoom : Closeable {
|
||||
|
||||
val roomInfoFlow: Flow<MatrixRoomInfo>
|
||||
|
||||
/**
|
||||
* The current notable tags as a Flow.
|
||||
*/
|
||||
val notableTagsFlow: Flow<RoomNotableTags>
|
||||
|
||||
/**
|
||||
|
||||
+5
-1
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user