mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 14:01:22 +02:00
Simplifying Reply unwrap for messages made by the logged in Person
This commit is contained in:
@@ -479,17 +479,26 @@ fun NoteCompose(
|
|||||||
!noteForReports.hasAnyReports()
|
!noteForReports.hasAnyReports()
|
||||||
|
|
||||||
if (eventContent != null) {
|
if (eventContent != null) {
|
||||||
TranslateableRichTextViewer(
|
if (makeItShort && note.author == account.userProfile()) {
|
||||||
eventContent,
|
Text(
|
||||||
canPreview = canPreview && !makeItShort,
|
text = eventContent,
|
||||||
Modifier.fillMaxWidth(),
|
color = MaterialTheme.colors.onSurface.copy(alpha = 0.32f),
|
||||||
noteEvent.tags(),
|
maxLines = 2,
|
||||||
backgroundColor,
|
overflow = TextOverflow.Ellipsis
|
||||||
accountViewModel,
|
)
|
||||||
navController
|
} else {
|
||||||
)
|
TranslateableRichTextViewer(
|
||||||
|
eventContent,
|
||||||
|
canPreview = canPreview && !makeItShort,
|
||||||
|
Modifier.fillMaxWidth(),
|
||||||
|
noteEvent.tags(),
|
||||||
|
backgroundColor,
|
||||||
|
accountViewModel,
|
||||||
|
navController
|
||||||
|
)
|
||||||
|
|
||||||
DisplayUncitedHashtags(noteEvent, eventContent, navController)
|
DisplayUncitedHashtags(noteEvent, eventContent, navController)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!makeItShort) {
|
if (!makeItShort) {
|
||||||
|
Reference in New Issue
Block a user