mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-02 08:58:23 +02:00
Fixes bug where default relays would come back after leaving the two groups and not adding any other group.
This commit is contained in:
parent
814fb1845f
commit
4b894c5b33
@ -35,7 +35,7 @@ class LocalPreferences(context: Context) {
|
||||
encryptedPreferences.apply {
|
||||
val privKey = getString("nostr_privkey", null)
|
||||
val pubKey = getString("nostr_pubkey", null)
|
||||
val followingChannels = getStringSet("following_channels", DefaultChannels)?.toMutableSet() ?: DefaultChannels.toMutableSet()
|
||||
val followingChannels = getStringSet("following_channels", null)?.toMutableSet() ?: mutableSetOf()
|
||||
val hiddenUsers = getStringSet("hidden_users", emptySet())?.toMutableSet() ?: mutableSetOf()
|
||||
|
||||
if (pubKey != null) {
|
||||
|
@ -39,8 +39,6 @@ fun RelayCompose(
|
||||
val accountState by accountViewModel.accountLiveData.observeAsState()
|
||||
val account = accountState?.account ?: return
|
||||
|
||||
val ctx = LocalContext.current.applicationContext
|
||||
|
||||
Column() {
|
||||
Row(
|
||||
modifier = Modifier
|
||||
|
Loading…
x
Reference in New Issue
Block a user