Search for shared notes returns incorrect results

What I did:
Search for shared notes.
Enter in the search window: \shared

What happened:
It also finds notes that I no longer share and the sharing is already canceled on both sides.

What I expected:
I am only shown notes that I am still sharing or the sharing on both sides has not yet been canceled.

Things that might be helpful to know (Agenda version, OS and model, etc): iOS+iPadOS

I’m obviously not support but out of curiosity, did the notes you shared contain attachments?

Yes, but only a few of them.

I suspect it has something to do with the internal backup of the notes.

Thanks. It’s possible it is not picking this unsharing up for some reason. We’ll take a look.