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