Move bunker log down

This commit is contained in:
greenart7c3
2024-11-13 15:52:17 -03:00
parent dcd88245d9
commit 9fde8f6b9c
@@ -83,16 +83,16 @@ class EventNotificationConsumer(private val applicationContext: Context) {
request: String,
encryptionType: EncryptionType,
) {
if (BuildConfig.DEBUG) {
Log.d("bunker", event.toJson())
Log.d("bunker", request)
}
val dao = NostrSigner.getInstance().getDatabase(acc.signer.keyPair.pubKey.toNpub()).applicationDao()
val notification = dao.getNotification(event.id)
if (notification != null) return
dao.insertNotification(NotificationEntity(0, event.id(), event.createdAt))
if (BuildConfig.DEBUG) {
Log.d("bunker", event.toJson())
Log.d("bunker", request)
}
val bunkerRequest = BunkerRequest.mapper.readValue(request, BunkerRequest::class.java)
bunkerRequest.localKey = event.pubKey
bunkerRequest.currentAccount = acc.signer.keyPair.pubKey.toNpub()