Кэш чатов
This commit is contained in:
@@ -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) } }
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user