TF-1900 Auto sync Sending Queue after work manager completed
(cherry picked from commit e68a8fdc49c600224b93e25f60ed6b8ecf1afe84)
This commit is contained in:
@@ -24,8 +24,15 @@ class SendingEmailCacheManager {
|
||||
return _hiveCacheClient.insertItem(keyCache, sendingEmailHiveCache);
|
||||
}
|
||||
|
||||
Future<List<SendingEmailHiveCache>> getAllSendingEmails(AccountId accountId, UserName userName) async {
|
||||
final sendingEmailsCache = await _hiveCacheClient.getListByTupleKey(accountId.asString, userName.value);
|
||||
Future<List<SendingEmailHiveCache>> getAllSendingEmails(
|
||||
AccountId accountId,
|
||||
UserName userName,
|
||||
{bool needToReopen = false}
|
||||
) async {
|
||||
final sendingEmailsCache = await _hiveCacheClient.getListByTupleKey(
|
||||
accountId.asString,
|
||||
userName.value,
|
||||
needToReopen: needToReopen);
|
||||
log('SendingEmailCacheManager::getAllSendingEmails():COUNT: ${sendingEmailsCache.length}');
|
||||
sendingEmailsCache.sortByLatestTime();
|
||||
return sendingEmailsCache;
|
||||
|
||||
Reference in New Issue
Block a user