mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
Only delay when client was disconnected
This commit is contained in:
@@ -334,9 +334,9 @@ class Amber : Application(), LifecycleObserver {
|
||||
}
|
||||
notificationSubscription.updateFilter()
|
||||
}
|
||||
delay(3000)
|
||||
Log.d(TAG, "checkForNewRelaysAndUpdateAllFilters wasActive: $wasActive")
|
||||
if (!wasActive) {
|
||||
delay(3000)
|
||||
client.connect()
|
||||
}
|
||||
|
||||
|
||||
@@ -320,13 +320,13 @@ fun EditConfigurationScreen(
|
||||
Amber.instance.getDatabase(account.npub).applicationDao().delete(it.application)
|
||||
Amber.instance.getDatabase(account.npub).applicationDao().deleteHistory(it.application.key)
|
||||
|
||||
Amber.instance.checkForNewRelaysAndUpdateAllFilters()
|
||||
|
||||
scope.launch(Dispatchers.Main) {
|
||||
navController.navigate(Route.Applications.route) {
|
||||
popUpTo(0)
|
||||
}
|
||||
}
|
||||
|
||||
Amber.instance.checkForNewRelaysAndUpdateAllFilters()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user