|
|
|
|
@ -82,7 +82,7 @@ fun DmChatScreen(conv: DmConversation, messages: List<Message>, viewModel: ChatV
|
|
|
|
|
onPlayVoice = { path, duration -> viewModel.playVoiceMessage(path, duration) }, |
|
|
|
|
onSeekVoice = { path, position, duration -> viewModel.seekVoice(path, position, duration) }, |
|
|
|
|
onOpenFile = { if (it.filePath.isNotEmpty()) { pathToSave = it.filePath; save.launch(it.text) } }, |
|
|
|
|
onPlayVideo = onPlayVideo) |
|
|
|
|
onPlayVideo = onPlayVideo, onInviteLink = viewModel::openInviteLink) |
|
|
|
|
if (error.isNotEmpty()) Text(error, color = MaterialTheme.colorScheme.error, modifier = Modifier.padding(8.dp)) |
|
|
|
|
ConversationComposer(target, viewModel, onSendMessage, onRecordVideo) |
|
|
|
|
} |
|
|
|
|
|