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

[stable3.7] fix: wrong attendance status for imip events #10090

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Sep 3, 2024

Backport of #10024

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@kesselb
Copy link
Contributor

kesselb commented Sep 3, 2024

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Adding hasCurrentUserPrincipalAndCollections to store/getters, store/index, store/mutations failed.

@kesselb kesselb marked this pull request as ready for review September 3, 2024 13:43
One may have imported an event, but the attendance status is not properly fetched when rendering the email.
The reason is a timing / state problem.

- Loading the user principal and collections is initialized in https://github.com/nextcloud/mail/blob/6fc45eb0630b9065f9ccb4c1da5cc9557f7df834/src/App.vue#L49-L50.
- If the backend request for the message body is faster, than loading the principal and collections, then Imip.fetchExistingEvent runs without having calendars and changes existingEventFetched to true that prevents the method from running again.
- Solution: Render the imip component when principal and collections are fetched.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Accepting a calendar invitation should always go to a writable calendar, and therefore we can skip the check if the event exists in a read-only calendar.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb kesselb merged commit 1e0164b into stable3.7 Sep 4, 2024
35 checks passed
@kesselb kesselb deleted the backport/10024/stable3.7 branch September 4, 2024 09:13
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.

2 participants