fix(propagation): scope events by server

This commit is contained in:
edde746
2026-02-06 09:58:57 +01:00
parent f6aa8e51e0
commit bbee74ef9d
9 changed files with 152 additions and 2 deletions
+3
View File
@@ -44,6 +44,9 @@ class DeletionEvent {
/// Check if this event affects any item in a collection
bool affectsAnyOf(Iterable<String> ratingKeys) => ratingKeys.any(affectsItem);
/// Check if this event affects any item in a global-key collection
bool affectsAnyGlobalKey(Iterable<String> globalKeys) => globalKeys.any(affectsGlobalKey);
@override
String toString() => 'DeletionEvent(deleted: $globalKey, type: $mediaType, parents: $parentChain)';
}
+3
View File
@@ -54,6 +54,9 @@ class WatchStateEvent {
/// Check if this event affects any item in a collection
bool affectsAnyOf(Iterable<String> ratingKeys) => ratingKeys.any(affectsItem);
/// Check if this event affects any item in a global-key collection
bool affectsAnyGlobalKey(Iterable<String> globalKeys) => globalKeys.any(affectsGlobalKey);
@override
String toString() => 'WatchStateEvent($changeType, $globalKey, parents: $parentChain)';
}