mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
RoomDirectory : address pr reviews
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ enum class FeatureFlags(
|
||||
RoomDirectorySearch(
|
||||
key = "feature.roomdirectorysearch",
|
||||
title = "Room directory search",
|
||||
description = "Allow user to search for public rooms in his homeserver",
|
||||
description = "Allow user to search for public rooms in their homeserver",
|
||||
defaultValue = true,
|
||||
isFinished = false,
|
||||
)
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ data class RoomDescription(
|
||||
val avatarUrl: String?,
|
||||
val joinRule: JoinRule,
|
||||
val isWorldReadable: Boolean,
|
||||
val joinedMembers: Long
|
||||
val numberOfMembers: Long
|
||||
) {
|
||||
enum class JoinRule {
|
||||
PUBLIC,
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ class RoomDescriptionMapper {
|
||||
null -> RoomDescription.JoinRule.UNKNOWN
|
||||
},
|
||||
isWorldReadable = roomDescription.isWorldReadable,
|
||||
joinedMembers = roomDescription.joinedMembers.toLong(),
|
||||
numberOfMembers = roomDescription.joinedMembers.toLong(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -37,5 +37,5 @@ fun aRoomDescription(
|
||||
avatarUrl = avatarUrl,
|
||||
joinRule = joinRule,
|
||||
isWorldReadable = isWorldReadable,
|
||||
joinedMembers = joinedMembers
|
||||
numberOfMembers = joinedMembers
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user