mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 05:54:19 +01:00
fix: useFollowers
This commit is contained in:
@@ -18,6 +18,7 @@ export default function useFollowers(propsProvider: () => UseFollowersProps) {
|
|||||||
relayUrls: config().relayUrls,
|
relayUrls: config().relayUrls,
|
||||||
filters: [{ kinds: [Kind.Contacts], '#p': [props().pubkey] }],
|
filters: [{ kinds: [Kind.Contacts], '#p': [props().pubkey] }],
|
||||||
limit: 1000000,
|
limit: 1000000,
|
||||||
|
eoseLimit: 1000000,
|
||||||
continuous: false,
|
continuous: false,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -120,8 +120,7 @@ const useSubscription = (propsProvider: () => UseSubscriptionProps | null) => {
|
|||||||
relayUrls,
|
relayUrls,
|
||||||
filters,
|
filters,
|
||||||
options ?? {
|
options ?? {
|
||||||
eoseTimeout: 12000,
|
maxWait: 12000,
|
||||||
maxWait: 6000,
|
|
||||||
onevent: (event: NostrEvent) => {
|
onevent: (event: NostrEvent) => {
|
||||||
if (onEvent != null) {
|
if (onEvent != null) {
|
||||||
onEvent(event as NostrEvent & { id: string });
|
onEvent(event as NostrEvent & { id: string });
|
||||||
|
|||||||
Reference in New Issue
Block a user