Get state cache by AccountId
(cherry picked from commit 9bb1de613ca58e5a7cb66fbc97ecd308754d088b)
This commit is contained in:
@@ -51,7 +51,7 @@ class ThreadRepositoryImpl extends ThreadRepository {
|
||||
sort: sort,
|
||||
limit: limit,
|
||||
filterOption: emailFilter?.filterOption),
|
||||
stateDataSource.getState(StateType.email)
|
||||
stateDataSource.getState(accountId, StateType.email)
|
||||
]).then((List response) {
|
||||
return EmailsResponse(emailList: response.first, state: response.last);
|
||||
});
|
||||
@@ -110,7 +110,7 @@ class ThreadRepositoryImpl extends ThreadRepository {
|
||||
sort: sort,
|
||||
limit: limit,
|
||||
filterOption: emailFilter?.filterOption),
|
||||
stateDataSource.getState(StateType.email)
|
||||
stateDataSource.getState(accountId, StateType.email)
|
||||
]).then((List response) {
|
||||
return EmailsResponse(emailList: response.first, state: response.last);
|
||||
});
|
||||
@@ -224,7 +224,7 @@ class ThreadRepositoryImpl extends ThreadRepository {
|
||||
sort: sort,
|
||||
filterOption: emailFilter?.filterOption
|
||||
),
|
||||
stateDataSource.getState(StateType.email)
|
||||
stateDataSource.getState(accountId, StateType.email)
|
||||
]).then((List response) {
|
||||
return EmailsResponse(emailList: response.first, state: response.last);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user