Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Set pending state for mollysocket discovery only
Browse files Browse the repository at this point in the history
Fix foreground service not correctly stopped with air gapped
  • Loading branch information
p1gp1g committed Mar 31, 2024
1 parent 75616c0 commit 9d4e269
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class UnifiedPushSettingsViewModel(private val application: Application) : ViewM
} else {
url
}
SignalStore.unifiedpush().pending = true
EXECUTOR.enqueue {
SignalStore.unifiedpush().mollySocketFound = try {
MollySocketRequest.discoverMollySocketServer()
Expand All @@ -119,7 +120,6 @@ class UnifiedPushSettingsViewModel(private val application: Application) : ViewM
}

private fun processNewStatus() {
SignalStore.unifiedpush().pending = true
store.update { getState() }
ApplicationDependencies.getJobManager().add(UnifiedPushRefreshJob())
}
Expand Down

0 comments on commit 9d4e269

Please sign in to comment.