mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
Move bunker log down
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user