feat: Bump version to 1.0.11, add ConnectionLogsScreen, and enhance message synchronization logic
This commit is contained in:
@@ -41,6 +41,7 @@ import com.rosetta.messenger.ui.auth.AuthFlow
|
||||
import com.rosetta.messenger.ui.auth.DeviceConfirmScreen
|
||||
import com.rosetta.messenger.ui.chats.ChatDetailScreen
|
||||
import com.rosetta.messenger.ui.chats.ChatsListScreen
|
||||
import com.rosetta.messenger.ui.chats.ConnectionLogsScreen
|
||||
import com.rosetta.messenger.ui.chats.RequestsListScreen
|
||||
import com.rosetta.messenger.ui.chats.SearchScreen
|
||||
import com.rosetta.messenger.ui.components.OptimizedEmojiCache
|
||||
@@ -503,6 +504,7 @@ sealed class Screen {
|
||||
data object Safety : Screen()
|
||||
data object Backup : Screen()
|
||||
data object Logs : Screen()
|
||||
data object ConnectionLogs : Screen()
|
||||
data object CrashLogs : Screen()
|
||||
data object Biometric : Screen()
|
||||
data object Appearance : Screen()
|
||||
@@ -610,6 +612,9 @@ fun MainScreen(
|
||||
val isSafetyVisible by remember { derivedStateOf { navStack.any { it is Screen.Safety } } }
|
||||
val isBackupVisible by remember { derivedStateOf { navStack.any { it is Screen.Backup } } }
|
||||
val isLogsVisible by remember { derivedStateOf { navStack.any { it is Screen.Logs } } }
|
||||
val isConnectionLogsVisible by remember {
|
||||
derivedStateOf { navStack.any { it is Screen.ConnectionLogs } }
|
||||
}
|
||||
val isCrashLogsVisible by remember {
|
||||
derivedStateOf { navStack.any { it is Screen.CrashLogs } }
|
||||
}
|
||||
@@ -1010,6 +1015,17 @@ fun MainScreen(
|
||||
)
|
||||
}
|
||||
|
||||
SwipeBackContainer(
|
||||
isVisible = isConnectionLogsVisible,
|
||||
onBack = { navStack = navStack.filterNot { it is Screen.ConnectionLogs } },
|
||||
isDarkTheme = isDarkTheme
|
||||
) {
|
||||
ConnectionLogsScreen(
|
||||
isDarkTheme = isDarkTheme,
|
||||
onBack = { navStack = navStack.filterNot { it is Screen.ConnectionLogs } }
|
||||
)
|
||||
}
|
||||
|
||||
var isOtherProfileSwipeEnabled by remember { mutableStateOf(true) }
|
||||
LaunchedEffect(selectedOtherUser?.publicKey) {
|
||||
isOtherProfileSwipeEnabled = true
|
||||
|
||||
Reference in New Issue
Block a user