Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
9a0972b1
Commit
9a0972b1
authored
Oct 06, 2020
by
Shashwat Jolly
Browse files
Use etebase 'medium' fetch option while fetching collection list
parent
b0f3c485
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/etesync/etesyncclientstate.cpp
View file @
9a0972b1
...
...
@@ -105,6 +105,7 @@ bool EteSyncClientState::accountStatus()
EtebaseCollectionManagerPtr
collectionManager
(
etebase_account_get_collection_manager
(
mAccount
.
get
()));
EtebaseFetchOptionsPtr
fetchOptions
(
etebase_fetch_options_new
());
etebase_fetch_options_set_limit
(
fetchOptions
.
get
(),
1
);
etebase_fetch_options_set_prefetch
(
fetchOptions
.
get
(),
ETEBASE_PREFETCH_OPTION_MEDIUM
);
EtebaseCollectionListResponsePtr
collectionList
(
etebase_collection_manager_list
(
collectionManager
.
get
(),
fetchOptions
.
get
()));
if
(
!
collectionList
)
{
...
...
resources/etesync/journalsfetchjob.cpp
View file @
9a0972b1
...
...
@@ -57,6 +57,7 @@ void JournalsFetchJob::fetchJournals()
EtebaseFetchOptionsPtr
fetchOptions
(
etebase_fetch_options_new
());
etebase_fetch_options_set_stoken
(
fetchOptions
.
get
(),
mSyncToken
);
etebase_fetch_options_set_limit
(
fetchOptions
.
get
(),
COLLECTIONS_FETCH_BATCH_SIZE
);
etebase_fetch_options_set_prefetch
(
fetchOptions
.
get
(),
ETEBASE_PREFETCH_OPTION_MEDIUM
);
EtebaseCollectionListResponsePtr
collectionList
(
etebase_collection_manager_list
(
collectionManager
.
get
(),
fetchOptions
.
get
()));
if
(
!
collectionList
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment