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
@@ -78,7 +78,7 @@ abstract class PushBaseController {
.nonNulls
.toList();
log('PushBaseController::mappingTypeStateToAction():listMailboxActions: $listEmailActions');
log('PushBaseController::mappingTypeStateToAction():listMailboxActions: $listMailboxActions');
if (listMailboxActions.isNotEmpty) {
mailboxChangeListener.dispatchActions(listMailboxActions);
@@ -11,11 +11,10 @@ class LabelChangeListener extends ChangeListener {
LabelController? _labelController;
LabelChangeListener._internal() {
try {
_labelController = getBinding<LabelController>();
} catch (e) {
logError(
'LabelChangeListener::_internal(): IS NOT REGISTERED: ${e.toString()}');
_labelController = getBinding<LabelController>();
if (_labelController == null) {
logWarning(
'LabelChangeListener::_internal(): LabelController IS NOT REGISTERED');
}
}