-
Notifications
You must be signed in to change notification settings - Fork 416
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
base: main
Are you sure you want to change the base?
Conversation
if (this.invitationsLoadedCount !== this.federationStore.pendingSharesCount) { | ||
this.federationStore.getShares() | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
…ount pending invites Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
8d4ef2b
to
1a18d00
Compare
1a18d00
to
439fd7e
Compare
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
439fd7e
to
94a42cc
Compare
☑️ Resolves
X-Nextcloud-Talk-Federation-Invites
header with the pending invitations on roo… #11944x-nextcloud-talk-federation-invites
to update counter within 30-sec interval🖌️ UI Checklist
🚧 Tasks
🏁 Checklist