Fixes missing function

pull/332/head
Vitor Pamplona 2023-04-04 16:11:22 -04:00
rodzic 83d7085375
commit 05138232f4
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -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
}
}

Wyświetl plik

@ -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,