mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-26 17:52:18 +01:00
fix performance issue
This commit is contained in:
parent
c906f88d61
commit
3cc22a7ce3
@ -56,7 +56,7 @@
|
||||
"match-sorter": "^6.3.1",
|
||||
"nanoid": "^5.0.4",
|
||||
"ngeohash": "^0.6.3",
|
||||
"nostr-idb": "^2.0.1",
|
||||
"nostr-idb": "^2.1.0",
|
||||
"nostr-tools": "^2.1.3",
|
||||
"react": "^18.2.0",
|
||||
"react-chartjs-2": "^5.2.0",
|
||||
|
@ -92,7 +92,7 @@ async function nip04Decrypt(pubkey: string, data: string): Promise<string> {
|
||||
}
|
||||
|
||||
const amberSignerService = {
|
||||
supported: navigator.userAgent.includes("Android") && navigator.clipboard,
|
||||
supported: navigator.userAgent.includes("Android") && navigator.clipboard && navigator.clipboard.readText,
|
||||
getPublicKey,
|
||||
signEvent,
|
||||
nip04Encrypt,
|
||||
|
@ -56,7 +56,7 @@ class EventReactionsService {
|
||||
const filter: Filter = { "#e": ids, kinds: [kinds.Reaction] };
|
||||
|
||||
// load from local relay
|
||||
relayRequest(localRelay, [filter]).then((events) => events.forEach((e) => this.handleEvent(e)));
|
||||
relayRequest(localRelay, [filter]).then((events) => events.forEach((e) => this.handleEvent(e, true)));
|
||||
|
||||
const request = new NostrRequest([relay]);
|
||||
request.onEvent.subscribe(this.handleEvent, this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user