Get rid of loadOne since it only works for id-based filters, not addresses
This commit is contained in:
@@ -2,7 +2,7 @@ import {MUTES, asDecryptedEvent, readList} from '@welshman/util'
|
||||
import {type TrustedEvent, type PublishedList} from '@welshman/util'
|
||||
import {type SubscribeRequest} from "@welshman/net"
|
||||
import {deriveEventsMapped, withGetter} from '@welshman/store'
|
||||
import {repository, loadOne} from './core'
|
||||
import {repository, load} from './core'
|
||||
import {collection} from './collection'
|
||||
import {ensurePlaintext} from './plaintext'
|
||||
|
||||
@@ -28,5 +28,5 @@ export const {
|
||||
store: mutes,
|
||||
getKey: mute => mute.event.pubkey,
|
||||
load: (pubkey: string, request: Partial<SubscribeRequest> = {}) =>
|
||||
loadOne({...request, filters: [{kinds: [MUTES], authors: [pubkey]}]}),
|
||||
load({...request, filters: [{kinds: [MUTES], authors: [pubkey]}]}),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user