Skip to content

Commit 905d235

Browse files
committed
chore(fc): establish beta flag for room descriptions
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 3489952 commit 905d235

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

flipchatApp/src/main/kotlin/xyz/flipchat/app/beta/LabsController.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ sealed interface Lab {
9797
override val launched: Boolean = false
9898
}
9999

100+
data object RoomDescriptions: Lab {
101+
override val key: String = "room_descriptions_enabled"
102+
override val default: Boolean = false
103+
override val launched: Boolean = false
104+
}
105+
100106
companion object {
101107
val entries = listOf(
102108
ReplyToMessage,
@@ -109,7 +115,8 @@ sealed interface Lab {
109115
ConnectX,
110116
TypingInChat,
111117
ShowConnectedSocials,
112-
EmojiReactions
118+
EmojiReactions,
119+
RoomDescriptions
113120
)
114121

115122
internal fun byKey(key: Preferences.Key<*>): Lab? {

flipchatApp/src/main/kotlin/xyz/flipchat/app/features/beta/BetaFlagsScreen.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ private val Lab.title: String
111111
Lab.TypingInChat -> "Typing Indicators"
112112
Lab.ShowConnectedSocials -> "Show User Social Names and Images"
113113
Lab.EmojiReactions -> "Emoji Reactions"
114+
Lab.RoomDescriptions -> "Room Descriptions"
114115
}
115116

116117
private val Lab.message: String
@@ -127,4 +128,5 @@ private val Lab.message: String
127128
Lab.TypingInChat -> "When enabled, you'll gain the ability to see when other uses are typing and let them know when you are"
128129
Lab.ShowConnectedSocials -> "When enabled, users connected social accounts will show in chat as their name and avatar. You additionally will be able to click avatars to view user profiles"
129130
Lab.EmojiReactions -> "When enabled, you'll gain the ability to send emoji reactions to messages in chat"
131+
Lab.RoomDescriptions -> "When enabled, hosts will gain the ability to set a description for their room"
130132
}

0 commit comments

Comments
 (0)