feat: Enhance user profile and settings screens

- Updated ChatDetailScreen to pass user data on profile click.
- Added BackupScreen for seed phrase recovery with password verification.
- Introduced OtherProfileScreen for viewing and managing other users' profiles.
- Created SafetyScreen for account security options including backup and deletion.
- Developed ThemeScreen for theme customization with light, dark, and system modes.
- Implemented UpdatesScreen to display app version and check for updates.
- Removed unused navigation item for updates from ProfileScreen.
This commit is contained in:
2026-01-20 18:59:44 +05:00
parent d78000aa3f
commit c42dd57e3d
8 changed files with 1533 additions and 130 deletions

View File

@@ -237,7 +237,7 @@ fun ChatDetailScreen(
currentUserPrivateKey: String,
isDarkTheme: Boolean,
onBack: () -> Unit,
onUserProfileClick: () -> Unit = {},
onUserProfileClick: (SearchUser) -> Unit = {},
onNavigateToChat: (String) -> Unit = {}, // 📨 Callback для навигации в другой чат (Forward)
viewModel: ChatViewModel = viewModel()
) {
@@ -964,7 +964,7 @@ fun ChatDetailScreen(
?.hide()
focusManager
.clearFocus()
onUserProfileClick()
onUserProfileClick(user)
},
contentAlignment =
Alignment.Center
@@ -1032,7 +1032,7 @@ fun ChatDetailScreen(
?.hide()
focusManager
.clearFocus()
onUserProfileClick()
onUserProfileClick(user)
}
) {
Row(