Avoid note subscription clipping in HomeModel
This commit adds a new event subscription task in HomeModel, one which streams low volume but important filters from NostrDB. This was done to address an issue where the contact filters in the general handler task could yield too many notes from NostrDB, hitting its limits and clipping off important events such as mute-lists, leading to downstream issues such as unintended mute-list overrides. This issue was not present since the last public release, therefore no changelog entry is needed. Changelog-None Closes: https://github.com/damus-io/damus/issues/3256 Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -533,7 +533,7 @@ extension NostrNetworkManager {
|
||||
/// Returns notes from both NostrDB and the network, in parallel, treating it with similar importance against the network relays. Generic EOSE is fired when EOSE is received from both the network and NostrDB
|
||||
/// `optimizeNetworkFilter`: Returns notes from ndb, then streams from the network with an added "since" filter set to the latest note stored on ndb.
|
||||
case ndbAndNetworkParallel(optimizeNetworkFilter: Bool)
|
||||
/// Ignores the network. Used for testing purposes
|
||||
/// Ignores the network.
|
||||
case ndbOnly
|
||||
|
||||
var optimizeNetworkFilter: Bool {
|
||||
|
||||
Reference in New Issue
Block a user