mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-05 20:32:35 +02:00
Simplifying Reply unwrap for messages made by the logged in Person
This commit is contained in:
@@ -479,6 +479,14 @@ fun NoteCompose(
|
|||||||
!noteForReports.hasAnyReports()
|
!noteForReports.hasAnyReports()
|
||||||
|
|
||||||
if (eventContent != null) {
|
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(
|
TranslateableRichTextViewer(
|
||||||
eventContent,
|
eventContent,
|
||||||
canPreview = canPreview && !makeItShort,
|
canPreview = canPreview && !makeItShort,
|
||||||
@@ -491,6 +499,7 @@ fun NoteCompose(
|
|||||||
|
|
||||||
DisplayUncitedHashtags(noteEvent, eventContent, navController)
|
DisplayUncitedHashtags(noteEvent, eventContent, navController)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!makeItShort) {
|
if (!makeItShort) {
|
||||||
ReactionsRow(note, accountViewModel)
|
ReactionsRow(note, accountViewModel)
|
||||||
|
Reference in New Issue
Block a user