fix: attachment/reply manager with denied text field

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-04-10 22:36:45 +02:00
parent 6f44c03cc0
commit 71895c348f
1 changed files with 2 additions and 2 deletions

View File

@ -472,7 +472,7 @@ fun ChannelScreen(
)
.clip(MaterialTheme.shapes.medium)
) {
AnimatedVisibility(visible = viewModel.pendingReplies.isNotEmpty()) {
AnimatedVisibility(visible = viewModel.pendingReplies.isNotEmpty() && !viewModel.denyMessageField) {
ReplyManager(
replies = viewModel.pendingReplies,
onRemove = { viewModel.pendingReplies.remove(it) },
@ -480,7 +480,7 @@ fun ChannelScreen(
)
}
AnimatedVisibility(visible = viewModel.pendingAttachments.isNotEmpty()) {
AnimatedVisibility(visible = viewModel.pendingAttachments.isNotEmpty() && !viewModel.denyMessageField) {
AttachmentManager(
attachments = viewModel.pendingAttachments,
uploading = viewModel.isSendingMessage,