Skip to content

Commit

Permalink
Fix app recovery on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Nov 14, 2024
1 parent 4e664d2 commit 4085b16
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,12 @@ class NotificationsService : Service() {
}

private fun startSubscription() {
Log.d("Pokey", "startSubscription")
val hexKey = Pokey.getInstance().getHexKey()
if (hexKey.isEmpty()) return

Log.d("Pokey", "hexKey $hexKey")
if (!Client.isSubscribed(clientNotificationListener)) Client.subscribe(clientNotificationListener)

CoroutineScope(Dispatchers.IO).launch {
Log.d("Pokey", "NostrClient.start")
NostrClient.start(this@NotificationsService)
}
}
Expand Down

0 comments on commit 4085b16

Please sign in to comment.