Skip to content

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Mar 14, 2024

When switching pages in Collectives, currentSession might still be the session from the last page. The readonly view (MarkdownContentEditor) doesn't get a session, so the outdated session is used.

Instead, always pass the session from AttachmentResolver to setAttachmentList.

Fixes: nextcloud/collectives#1096
Fixes: nextcloud/collectives#1112

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

@mejo-
Copy link
Member Author

mejo- commented Mar 14, 2024

/backport to stable28

@mejo-
Copy link
Member Author

mejo- commented Mar 14, 2024

/backport to stable27

When switching pages in Collectives, `currentSession` might still be the
session from the last page. The readonly view (`MarkdownContentEditor`)
doesn't get a session, so the outdated session is used.

Instead, always pass the session from `AttachmentResolver` to
`setAttachmentList`.

Fixes: nextcloud/collectives#1096
Fixes: nextcloud/collectives#1112

Signed-off-by: Jonas <[email protected]>
@mejo- mejo- force-pushed the fix/attachments_session branch from 8b864cb to 201a363 Compare March 14, 2024 11:37
Copy link
Member

@grnd-alt grnd-alt left a comment

Choose a reason for hiding this comment

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

went through the changes and tested locally. Working as expected 💯

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.

pasting inline pictures from clipboard - collective show random pictures from other articles Failed to load attachment

3 participants