Skip to content

Commit

Permalink
Fix city search results for free users [VPNAND-1711]
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgirdasPundzius authored and msimonides-proton committed Apr 2, 2024
1 parent 13c3997 commit 5a6d94b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,12 @@ class SearchViewModel @Inject constructor(
)
}

private fun mapCity(match: Search.Match<Search.CityResult>, vpnUser: VpnUser?, connectedServer: Server?) =
private suspend fun mapCity(match: Search.Match<Search.CityResult>, vpnUser: VpnUser?, connectedServer: Server?) =
match.value.let { city ->
ResultItem(
match,
city.servers.contains(connectedServer),
vpnUser.hasAccessToAnyServer(city.servers),
vpnUser.hasAccessToAnyServer(city.servers) && !restrictions.restrictServerList(),
city.servers.any { it.online },
partnerships = emptyList()
)
Expand Down

0 comments on commit 5a6d94b

Please sign in to comment.