Кэш чатов

This commit is contained in:
Халимов Рустам
2026-04-20 00:25:40 +03:00
parent 945134f029
commit 7c66e1c0c0
35 changed files with 2131 additions and 92 deletions
@@ -35,7 +35,7 @@ fun ProfileScreen(
profileId: String? = null, // null for own profile
viewModel: ProfileViewModel = hiltViewModel(),
onEditProfile: () -> Unit = {},
onSendMessage: (String) -> Unit = {},
onSendMessage: (String, String) -> Unit = { _, _ -> },
onCall: (String) -> Unit = {},
onBack: () -> Unit = {}
) {
@@ -108,7 +108,7 @@ fun ProfileScreen(
birthday = profile?.birthday,
isOwnProfile = isOwnProfile,
isCallsEnabled = true,
onSendMessage = { profile?.id?.let { id -> onSendMessage(id) } },
onSendMessage = { profile?.let { p -> onSendMessage(p.id ?: "", p.displayName ?: p.username ?: "Chat") } },
onCall = { profile?.id?.let { id -> onCall(id) } }
)
}