Skip to content

fix(OCM invites): check for addressbook or lack thereof in route. - #5724

Closed
redblom wants to merge 1 commit into
nextcloud:mainfrom
sara-nl:fix-undefined-group-ocm-invites-routes
Closed

redblom wants to merge 1 commit into
nextcloud:mainfrom
sara-nl:fix-undefined-group-ocm-invites-routes

Conversation

@redblom

@redblom redblom commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

The OCM invites routes lack the addressbook part. That Irregularly causes a group not found error when navigating from any of the Address book contacts lists to 'External invitations' list.

Screenshot from 2026-09-15 10-24-18

This PR fixes this issue by checking if `this.addressbook` is actually set in the relevant watcher.

@redblom
redblom force-pushed the fix-undefined-group-ocm-invites-routes branch from f9f3eb4 to 286de13 Compare September 14, 2026 12:48
@codecov

codecov Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread src/views/Contacts.vue
// watch url change and address book select
selectedAddressbook() {
if (!this.isMobile && !this.selectedChart) {
if (this.addressbook && !this.isMobile && !this.selectedChart) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this leftover ? this.addressbookis always underfined

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No it's the actual fix. The reason is as follows: The 'External invitations' route does not have the addressbook part so when navigating to it from any of the Address books lists this.addressbook changes to undefined and the selectedAddressbook() watcher is triggered. And then selectFirstContactIfNone() is called (causing the group not found error) instead of selectFirstOcmInviteIfNone().

@redblom
redblom requested a review from hamza221 September 16, 2026 08:01
@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Signed-off-by: Antoon P. <antoon.prins@surf.nl>
@redblom
redblom force-pushed the fix-undefined-group-ocm-invites-routes branch from 286de13 to f4a6a2c Compare October 27, 2026 15:18
@redblom redblom closed this Oct 27, 2026
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