Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch "shared with me" information separately #7744

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nilsding
Copy link
Member

If the parameter shared_with_me is set to "true" on the shares API call the response will only include that and not return any other sharing information. therefore let's fetch it inside another job (this is also how the web client does it).

Fixes #7734.

if the parameter `shared_with_me` is set to `"true"` on the shares API
call the response will only include that and not return any other
sharing information.  therefore let's fetch it inside another job (this
is also how the web client does it).

Signed-off-by: Jyrki Gadinger <[email protected]>
@nilsding nilsding added this to the 3.16.0 milestone Jan 10, 2025
@nilsding nilsding self-assigned this Jan 10, 2025
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-7744-fe6439bd6dfa8b24dc78a41ead637e0652824370-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@nilsding nilsding marked this pull request as draft January 10, 2025 13:28
Copy link
Collaborator

@claucambra claucambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a nitpick

@@ -540,6 +540,11 @@ void ShareManager::fetchShares(const QString &path)
connect(job, &OcsShareJob::shareJobFinished, this, &ShareManager::slotSharesFetched);
connect(job, &OcsJob::ocsError, this, &ShareManager::slotOcsError);
job->getShares(path);

auto *sharedWithMeJob = new OcsShareJob(_account);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
auto *sharedWithMeJob = new OcsShareJob(_account);
const auto sharedWithMeJob = new OcsShareJob(_account);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Share status as shown in Desktop Client share dialog is not consistent with a file share status
3 participants