kopia lustrzana https://github.com/vitorpamplona/amethyst
Fixes missing function
rodzic
83d7085375
commit
05138232f4
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue