Skip to content

Conversation

@01zulfi
Copy link
Contributor

@01zulfi 01zulfi commented Nov 26, 2025

Signed-off-by: 01zulfi [email protected]

!!this.types?.includes("note" as TType) &&
this.db.notes.cache.archived.length > 0,
this.db.notes.cache.archived.length > 0 &&
this.reference.type !== "attachment",
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a good idea to do this here. It'll affect the whole app even where we don't want archived notes showing in attachments relations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I check all the places where we are fetching attachment's linked notes in web and core. All those cases should fetch archived notes as linked notes, that's why I hardcoded this condition here. Do you think we should pass this as an options.includeArchivedNotes (or similar) parameter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants