Simplifying Reply unwrap for messages made by the logged in Person

This commit is contained in:
Vitor Pamplona
2023-03-23 15:47:20 -04:00
parent 79c894dcfd
commit 81d9037807

View File

@@ -479,6 +479,14 @@ fun NoteCompose(
!noteForReports.hasAnyReports()
if (eventContent != null) {
if (makeItShort && note.author == account.userProfile()) {
Text(
text = eventContent,
color = MaterialTheme.colors.onSurface.copy(alpha = 0.32f),
maxLines = 2,
overflow = TextOverflow.Ellipsis
)
} else {
TranslateableRichTextViewer(
eventContent,
canPreview = canPreview && !makeItShort,
@@ -491,6 +499,7 @@ fun NoteCompose(
DisplayUncitedHashtags(noteEvent, eventContent, navController)
}
}
if (!makeItShort) {
ReactionsRow(note, accountViewModel)