diff options
author | greta <gretadoci@gmail.com> | 2022-05-31 15:03:53 +0300 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-05-31 17:16:38 +0300 |
commit | 0aa4fd0385eb78cf9e3a16e6755affe621c8db54 (patch) | |
tree | b585958b6f0fa859d885480f5bd6dc2513d9fe8c /src | |
parent | 4d01e7e05294cd273d7c650c37e4539c649e8028 (diff) |
Fix the PI sync
Signed-off-by: greta <gretadoci@gmail.com>
Diffstat (limited to 'src')
-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)] |