Commit 1e5c4473 authored by Shashwat Jolly's avatar Shashwat Jolly
Browse files

Fig bug where large items where not passed to Akonadi

If the item is greater than the "initial try" size, we resize the buffer and try to get the content.
The code had an extra return that prevented the item from being pushed to the list that is supplied to Akonadi.
parent ecfd923b
Pipeline #36958 failed with stage
in 31 minutes and 31 seconds
......@@ -137,10 +137,8 @@ void EntriesFetchJob::setupItem(Akonadi::Item &item, const EtebaseItem *etesyncI
QByteArray content(ITEM_SIZE_INITIAL_TRY, '\0');
auto const len = etebase_item_get_content(etesyncItem,, ITEM_SIZE_INITIAL_TRY);
QByteArray content(len, '\0');
etebase_item_get_content(etesyncItem,, len);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment