- Creates a Quartz Module for Nostr Events
- Creates a Benchmark Module to test Performance - Migrates from GSon to Jackson for Performance Gains, adapts all serializers accordingly - Recreates Hex encoding/decoding classes for Performance. - Migrates NIP24 to the new ByteArray Concat encoding. - Removes support for Lenient choices in the. events. - Reorganizes Nostr Events dependencies. - Refactors TLV's and NIP-19 dependencies. - Adds a Large DB for signature checks.
This commit is contained in:
+2
-2
@@ -5,9 +5,9 @@ import androidx.core.content.ContextCompat
|
||||
import com.google.firebase.messaging.FirebaseMessagingService
|
||||
import com.google.firebase.messaging.RemoteMessage
|
||||
import com.vitorpamplona.amethyst.LocalPreferences
|
||||
import com.vitorpamplona.amethyst.service.model.Event
|
||||
import com.vitorpamplona.amethyst.service.notifications.NotificationUtils.getOrCreateDMChannel
|
||||
import com.vitorpamplona.amethyst.service.notifications.NotificationUtils.getOrCreateZapChannel
|
||||
import com.vitorpamplona.quartz.events.Event
|
||||
|
||||
class PushNotificationReceiverService : FirebaseMessagingService() {
|
||||
|
||||
@@ -15,7 +15,7 @@ class PushNotificationReceiverService : FirebaseMessagingService() {
|
||||
override fun onMessageReceived(remoteMessage: RemoteMessage) {
|
||||
remoteMessage.data.let {
|
||||
val eventStr = remoteMessage.data["event"] ?: return
|
||||
val event = Event.fromJson(eventStr, true)
|
||||
val event = Event.fromJson(eventStr)
|
||||
EventNotificationConsumer(applicationContext).consume(event)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -35,9 +35,9 @@ import androidx.compose.ui.unit.dp
|
||||
import androidx.core.os.ConfigurationCompat
|
||||
import com.vitorpamplona.amethyst.R
|
||||
import com.vitorpamplona.amethyst.service.lang.LanguageTranslatorService
|
||||
import com.vitorpamplona.amethyst.ui.actions.ImmutableListOfLists
|
||||
import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
|
||||
import com.vitorpamplona.amethyst.ui.theme.lessImportantLink
|
||||
import com.vitorpamplona.quartz.events.ImmutableListOfLists
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import java.util.Locale
|
||||
|
||||
Reference in New Issue
Block a user