feat: Fix loop uses sinceState instead of newSinceState, causing infinite loops.

This commit is contained in:
dab246
2026-02-04 09:48:50 +07:00
committed by Dat H. Pham
parent 4fea45d062
commit 41817091c1
9 changed files with 23 additions and 16 deletions
@@ -244,6 +244,10 @@ class LabelUtils {
}
}
/// Applies label changes to [currentLabels] **in place**.
///
/// Removes labels matching [destroyedIds], [created], and [updated] IDs,
/// then appends [created] and [updated] labels.
static void applyLabelChanges({
required List<Label> currentLabels,
required List<Label> created,