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

fix(federation): use a value from response header to count invites #12340

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Antreesy
Copy link
Contributor

@Antreesy Antreesy commented May 13, 2024

☑️ Resolves

🖌️ UI Checklist

Loading Placeholder
image image

🚧 Tasks

  • Manual test

🏁 Checklist

  • 🌏 Tested with Chrome, Firefox and Safari or should not be risky to browser differences
  • 🖥️ Tested with Desktop client or should not be risky for it
  • ⛑️ Tests are included or not possible

Comment on lines 125 to 127
if (this.invitationsLoadedCount !== this.federationStore.pendingSharesCount) {
this.federationStore.getShares()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Count can be the same but the item can be different

Copy link
Contributor

Choose a reason for hiding this comment

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

After removing this, there is no trigger to get new shares when modal is open. Either restore this with a risk of missing fetch in +n addition and -n removal situation or maybe add an interval fetch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We will still get new ones from the invitation, if it arrives at the same momebt

Copy link
Contributor

Choose a reason for hiding this comment

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

From what I see, no update trigger is there to update the shares list.

src/components/LeftSidebar/InvitationHandler.vue Outdated Show resolved Hide resolved
…ount pending invites

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy Antreesy force-pushed the fix/11944/federation-headers-invite branch from 8d4ef2b to 1a18d00 Compare May 13, 2024 17:38
@Antreesy Antreesy requested a review from DorraJaouad May 13, 2024 17:38
@Antreesy Antreesy force-pushed the fix/11944/federation-headers-invite branch from 1a18d00 to 439fd7e Compare May 13, 2024 17:50
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy Antreesy force-pushed the fix/11944/federation-headers-invite branch from 439fd7e to 94a42cc Compare May 15, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants