diff --git a/app/src/main/kotlin/org/equeim/tremotesf/ui/torrentpropertiesfragment/PeersTab.kt b/app/src/main/kotlin/org/equeim/tremotesf/ui/torrentpropertiesfragment/PeersTab.kt index 5a992598..1d7df167 100644 --- a/app/src/main/kotlin/org/equeim/tremotesf/ui/torrentpropertiesfragment/PeersTab.kt +++ b/app/src/main/kotlin/org/equeim/tremotesf/ui/torrentpropertiesfragment/PeersTab.kt @@ -83,7 +83,7 @@ fun PeersTab( val comparator = rememberLocaleDependentValue { compareBy(AlphanumericComparator(), Peer::address) } - val sortedPeers = remember { derivedStateOf { peers.sortedWith(comparator) } } + val sortedPeers = remember { derivedStateOf { peers.sortedWith(comparator).distinctBy(Peer::address) } } LazyColumn( state = listState,