Pages corrections widget
This commit is contained in:
parent
ed9dadd77a
commit
b6bb7b61ad
@ -239,7 +239,7 @@ export function Email() {
|
|||||||
console.log('[Email Widget] 📧 Dispatching new emails event', {
|
console.log('[Email Widget] 📧 Dispatching new emails event', {
|
||||||
newEmailsCount: newEmails.length,
|
newEmailsCount: newEmails.length,
|
||||||
newEmailIds: Array.from(newEmailIds),
|
newEmailIds: Array.from(newEmailIds),
|
||||||
previousCount,
|
previousCount: lastUnreadCountRef.current,
|
||||||
currentCount: currentUnreadCount,
|
currentCount: currentUnreadCount,
|
||||||
previousEmailIds: Array.from(lastEmailIdsRef.current),
|
previousEmailIds: Array.from(lastEmailIdsRef.current),
|
||||||
});
|
});
|
||||||
@ -248,14 +248,12 @@ export function Email() {
|
|||||||
detail: {
|
detail: {
|
||||||
emails: transformedEmails,
|
emails: transformedEmails,
|
||||||
accountMap: accountMap,
|
accountMap: accountMap,
|
||||||
previousCount,
|
previousCount: lastUnreadCountRef.current,
|
||||||
currentCount: currentUnreadCount,
|
currentCount: currentUnreadCount,
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Always update lastEmailIdsRef to track current state
|
// Always update lastEmailIdsRef to track current state
|
||||||
lastEmailIdsRef.current = currentEmailIds;
|
lastEmailIdsRef.current = currentEmailIds;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user