mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 18:40:54 +02:00
refactoring
This commit is contained in:
@@ -65,7 +65,7 @@ class NewRelayListViewModel: ViewModel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun addRelay(relay: Relay) {
|
fun addRelay(relay: Relay) {
|
||||||
if (relays.value.filter { it.url == relay.url }.isNotEmpty()) return
|
if (relays.value.any { it.url == relay.url }) return
|
||||||
|
|
||||||
_relays.update {
|
_relays.update {
|
||||||
it.plus(relay)
|
it.plus(relay)
|
||||||
|
Reference in New Issue
Block a user