pendingInboxCount method
Counts the unread inbox messages of id (0 without a fabric) — the
mail:N indicator in the agents panel.
Implementation
Future<int> pendingInboxCount(String id) async =>
(await messaging?.peek(mailboxOf(id)) ?? const []).length;