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
9cdee563
Commit
9cdee563
authored
Oct 02, 2020
by
Shashwat Jolly
Browse files
Fix bug where removed collection memberships did not delete collections
Set parent collection for removed collection memberships
parent
ecd0fc57
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/etesync/journalsfetchjob.cpp
View file @
9cdee563
...
...
@@ -88,6 +88,7 @@ void JournalsFetchJob::fetchJournals()
}
uintptr_t
removedCollectionsLength
=
etebase_collection_list_response_get_removed_memberships_length
(
collectionList
.
get
());
qCDebug
(
ETESYNC_LOG
)
<<
"Removed collection membership list length"
<<
removedCollectionsLength
;
if
(
removedCollectionsLength
)
{
std
::
vector
<
const
EtebaseRemovedCollection
*>
removedEtesyncCollections
(
removedCollectionsLength
,
nullptr
);
if
(
etebase_collection_list_response_get_removed_memberships
(
collectionList
.
get
(),
removedEtesyncCollections
.
data
()))
{
...
...
@@ -99,6 +100,8 @@ void JournalsFetchJob::fetchJournals()
Collection
collection
;
const
QString
journalUid
=
QString
::
fromUtf8
(
etebase_removed_collection_get_uid
(
removedEtesyncCollections
[
i
]));
collection
.
setRemoteId
(
journalUid
);
collection
.
setParentCollection
(
mResourceCollection
);
qCDebug
(
ETESYNC_LOG
)
<<
"Removed collection membership"
<<
journalUid
;
mRemovedCollections
.
push_back
(
collection
);
}
}
...
...
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