diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2022-05-31 17:15:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 17:15:35 +0300 |
commit | 1a0e6195875307d8bc03ed48e5b3d8a83c328efd (patch) | |
tree | e023d3d9996b1c97c44330d038f1f0eaa1180b7d | |
parent | e2ce8c923326dda8df032211c2a3e75a9904a191 (diff) | |
parent | d530ea8774cc1982c3f3b9ac92bcf2b73d089b8a (diff) |
Merge pull request #6606 from nextcloud/fix/PI-sync
Fix the PI sync when the page is not force loading
-rw-r--r-- | src/store/actions.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/store/actions.js b/src/store/actions.js index 02e4412f3..692a76bec 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -83,7 +83,12 @@ import { wait } from '../util/wait' import { updateAccount as updateSieveAccount } from '../service/SieveService' import { PAGE_SIZE, UNIFIED_INBOX_ID } from './constants' import * as ThreadService from '../service/ThreadService' -import { getPrioritySearchQueries } from '../util/priorityInbox' +import { + getPrioritySearchQueries, + priorityImportantQuery, + priorityOtherQuery, + priorityStarredQuery, +} from '../util/priorityInbox' import { html, plain, toPlain } from '../util/text' import Axios from '@nextcloud/axios' import { generateUrl } from '@nextcloud/router' @@ -717,7 +722,7 @@ export default { try { // Make sure the priority inbox is updated as well logger.info('updating priority inbox') - for (const query of ['is:important not:starred', 'is:starred not:important', 'not:starred not:important']) { + for (const query of [priorityImportantQuery, priorityStarredQuery, priorityOtherQuery]) { logger.info("sync'ing priority inbox section", { query }) const mailbox = getters.getMailbox(UNIFIED_INBOX_ID) const list = mailbox.envelopeLists[normalizedEnvelopeListId(query)] |