mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-29 11:11:44 +01:00
add nip90 events to factory
This commit is contained in:
parent
11a5f4a67e
commit
0245c907ff
@ -57,8 +57,6 @@ open class NIP90ContentDiscoveryFilter(
|
||||
|
||||
override fun applyFilter(collection: Set<Note>): Set<Note> {
|
||||
var result = innerApplyFilter(collection)
|
||||
println("Test World")
|
||||
println(result)
|
||||
return result
|
||||
}
|
||||
|
||||
|
@ -76,12 +76,10 @@ private fun RenderNostrNIP90ContentDiscoveryScreen(
|
||||
if (DVMID != null) {
|
||||
// TODO 1 Send KIND 5300 Event with p tag = DVMID (crashes, because cant map to event)
|
||||
|
||||
/*val signer: NostrSigner = NostrSignerInternal(accountViewModel.account.keyPair)
|
||||
println(accountViewModel.account.keyPair.pubKey.toHexKey())
|
||||
NIP90ContentDiscoveryRequestEvent.create(DVMID, signer) {
|
||||
/*NIP90ContentDiscoveryRequestEvent.create(DVMID, accountViewModel.account.signer) {
|
||||
Client.send(it)
|
||||
LocalCache.justConsume(it, null)
|
||||
} */
|
||||
}*/
|
||||
|
||||
// var keyPair = accountViewModel.account.keyPair
|
||||
|
||||
|
@ -114,6 +114,9 @@ class EventFactory {
|
||||
MetadataEvent.KIND -> MetadataEvent(id, pubKey, createdAt, tags, content, sig)
|
||||
MuteListEvent.KIND -> MuteListEvent(id, pubKey, createdAt, tags, content, sig)
|
||||
NNSEvent.KIND -> NNSEvent(id, pubKey, createdAt, tags, content, sig)
|
||||
NIP90StatusEvent.KIND -> NIP90StatusEvent(id, pubKey, createdAt, tags, content, sig)
|
||||
NIP90ContentDiscoveryRequestEvent.KIND -> NIP90ContentDiscoveryRequestEvent(id, pubKey, createdAt, tags, content, sig)
|
||||
NIP90ContentDiscoveryResponseEvent.KIND -> NIP90ContentDiscoveryResponseEvent(id, pubKey, createdAt, tags, content, sig)
|
||||
OtsEvent.KIND -> OtsEvent(id, pubKey, createdAt, tags, content, sig)
|
||||
PeopleListEvent.KIND -> PeopleListEvent(id, pubKey, createdAt, tags, content, sig)
|
||||
PinListEvent.KIND -> PinListEvent(id, pubKey, createdAt, tags, content, sig)
|
||||
|
Loading…
x
Reference in New Issue
Block a user