mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 22:53:11 +02:00
No need to sort. It will be resorted later.
This commit is contained in:
@@ -20,11 +20,9 @@ import com.vitorpamplona.amethyst.model.*
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ReplyInformation(replyTo: List<Note>?, mentions: List<String>, account: Account, navController: NavController) {
|
fun ReplyInformation(replyTo: List<Note>?, mentions: List<String>, account: Account, navController: NavController) {
|
||||||
val sortedMentions = mentions.mapNotNull { LocalCache.checkGetOrCreateUser(it) }
|
val dupMentions = mentions.mapNotNull { LocalCache.checkGetOrCreateUser(it) }
|
||||||
.toSet()
|
|
||||||
.sortedBy { account.userProfile().isFollowingCached(it) }
|
|
||||||
|
|
||||||
ReplyInformation(replyTo, sortedMentions, account) {
|
ReplyInformation(replyTo, dupMentions, account) {
|
||||||
navController.navigate("User/${it.pubkeyHex}")
|
navController.navigate("User/${it.pubkeyHex}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user