mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-21 19:00:41 +02:00
Not showing reply information in inner short posts.
This commit is contained in:
@@ -309,7 +309,7 @@ fun NoteCompose(
|
|||||||
|
|
||||||
Spacer(modifier = Modifier.height(3.dp))
|
Spacer(modifier = Modifier.height(3.dp))
|
||||||
|
|
||||||
if (noteEvent is TextNoteEvent && (note.replyTo != null || noteEvent.mentions().isNotEmpty())) {
|
if (!makeItShort && noteEvent is TextNoteEvent && (note.replyTo != null || noteEvent.mentions().isNotEmpty())) {
|
||||||
val sortedMentions = noteEvent.mentions()
|
val sortedMentions = noteEvent.mentions()
|
||||||
.mapNotNull { LocalCache.checkGetOrCreateUser(it) }
|
.mapNotNull { LocalCache.checkGetOrCreateUser(it) }
|
||||||
.toSet()
|
.toSet()
|
||||||
@@ -338,7 +338,7 @@ fun NoteCompose(
|
|||||||
} else {
|
} else {
|
||||||
ReplyInformation(note.replyTo, sortedMentions, account, navController)
|
ReplyInformation(note.replyTo, sortedMentions, account, navController)
|
||||||
}
|
}
|
||||||
} else if (noteEvent is ChannelMessageEvent && (note.replyTo != null || noteEvent.mentions() != null)) {
|
} else if (!makeItShort && noteEvent is ChannelMessageEvent && (note.replyTo != null || noteEvent.mentions() != null)) {
|
||||||
val sortedMentions = noteEvent.mentions()
|
val sortedMentions = noteEvent.mentions()
|
||||||
.mapNotNull { LocalCache.checkGetOrCreateUser(it) }
|
.mapNotNull { LocalCache.checkGetOrCreateUser(it) }
|
||||||
.toSet()
|
.toSet()
|
||||||
|
Reference in New Issue
Block a user