mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3128 Chats | Fix | Enable space-level chats for specified spaces for beta testing (#1895)
This commit is contained in:
parent
07ccc9e2b5
commit
4a4d34bc6b
1 changed files with 11 additions and 4 deletions
|
@ -125,7 +125,7 @@ class HomeScreenFragment : BaseComposeFragment(),
|
|||
surface = colorResource(id = R.color.background_secondary)
|
||||
)
|
||||
) {
|
||||
if (featureToggles.isNewSpaceHomeEnabled || space == SPACE_WITH_SPACE_LEVEL_CHAT) {
|
||||
if (featureToggles.isNewSpaceHomeEnabled || spacesWithSpaceLevelChat.contains(space)) {
|
||||
val sheetState = rememberModalBottomSheetState(skipPartiallyExpanded = false)
|
||||
var showGlobalSearchBottomSheet by remember { mutableStateOf(false) }
|
||||
|
||||
|
@ -608,7 +608,9 @@ class HomeScreenFragment : BaseComposeFragment(),
|
|||
}
|
||||
|
||||
override fun onApplyWindowRootInsets(view: View) {
|
||||
if (!featureToggles.isNewSpaceHomeEnabled && space != SPACE_WITH_SPACE_LEVEL_CHAT) {
|
||||
if (featureToggles.isNewSpaceHomeEnabled || spacesWithSpaceLevelChat.contains(space)) {
|
||||
// Do nothing.
|
||||
} else {
|
||||
super.onApplyWindowRootInsets(view)
|
||||
}
|
||||
// Do not apply window insets on fragment container.
|
||||
|
@ -620,9 +622,14 @@ class HomeScreenFragment : BaseComposeFragment(),
|
|||
const val SPACE_ID_KEY = "arg.home-screen.space-id"
|
||||
|
||||
/**
|
||||
* Temporary space for beta-testing space-level chat
|
||||
* Spaces for beta-testing space-level chats
|
||||
*/
|
||||
const val SPACE_WITH_SPACE_LEVEL_CHAT = "bafyreiezhzb4ggnhjwejmh67pd5grilk6jn3jt7y2rnfpbkjwekilreola.1t123w9f2lgn5"
|
||||
|
||||
val spacesWithSpaceLevelChat = listOf(
|
||||
"bafyreiezhzb4ggnhjwejmh67pd5grilk6jn3jt7y2rnfpbkjwekilreola.1t123w9f2lgn5",
|
||||
"bafyreifikxj75r4duzhqxqelmi66rwlzqml5jnad35dnukxwlawtfrql5a.21584urzltddb",
|
||||
"bafyreia4jsiobrq7ptpuxsv6nmpj4vis7o5p73yibjb5w4crhxl2oqocoq.9tkr2p3mb0pj"
|
||||
)
|
||||
|
||||
fun args(
|
||||
space: Id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue