mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 22:02:29 +02:00
Fixes missing function
This commit is contained in:
@@ -251,4 +251,8 @@ open class NewPostViewModel : ViewModel() {
|
|||||||
return message.text.isNotBlank() && !isUploadingImage &&
|
return message.text.isNotBlank() && !isUploadingImage &&
|
||||||
(!wantsPoll || pollOptions.values.all { it.isNotEmpty() })
|
(!wantsPoll || pollOptions.values.all { it.isNotEmpty() })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun canUsePoll(): Boolean {
|
||||||
|
return originalNote?.event !is PrivateDmEvent && originalNote?.channel() == null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -286,7 +286,7 @@ fun ChatroomMessageCompose(
|
|||||||
TranslatableRichTextViewer(
|
TranslatableRichTextViewer(
|
||||||
eventContent,
|
eventContent,
|
||||||
canPreview,
|
canPreview,
|
||||||
Modifier,
|
Modifier.padding(top = 5.dp),
|
||||||
note.event?.tags(),
|
note.event?.tags(),
|
||||||
backgroundBubbleColor,
|
backgroundBubbleColor,
|
||||||
accountViewModel,
|
accountViewModel,
|
||||||
@@ -296,7 +296,7 @@ fun ChatroomMessageCompose(
|
|||||||
TranslatableRichTextViewer(
|
TranslatableRichTextViewer(
|
||||||
stringResource(R.string.could_not_decrypt_the_message),
|
stringResource(R.string.could_not_decrypt_the_message),
|
||||||
true,
|
true,
|
||||||
Modifier,
|
Modifier.padding(top = 5.dp),
|
||||||
note.event?.tags(),
|
note.event?.tags(),
|
||||||
backgroundBubbleColor,
|
backgroundBubbleColor,
|
||||||
accountViewModel,
|
accountViewModel,
|
||||||
|
Reference in New Issue
Block a user