mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-18 05:41:44 +01:00
fix bug with subscriptions firing multiple times
This commit is contained in:
parent
724973481e
commit
2d78537545
@ -6,6 +6,7 @@ import relayPoolService from "../services/relay-pool";
|
||||
import Process from "./process";
|
||||
import FilterFunnel01 from "../components/icons/filter-funnel-01";
|
||||
import processManager from "../services/process-manager";
|
||||
import { isFilterEqual } from "../helpers/nostr/filter";
|
||||
|
||||
export default class PersistentSubscription {
|
||||
id: string;
|
||||
@ -73,7 +74,7 @@ export default class PersistentSubscription {
|
||||
this.params.onclose?.(reason);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
} else if (isFilterEqual(this.subscription.filters, this.filters) === false) {
|
||||
this.subscription.filters = this.filters;
|
||||
// NOTE: reset the eosed flag since nostr-tools dose not
|
||||
this.subscription.eosed = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user