-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Import notes' images from revoked sharings
The `io.cozy.notes.images` documents associated with a Cozy Note are not shared with the note itself. Therefore, when the sharing is revoked and the note opened by the sharing recipient on their own Cozy (i.e. shared notes are opened on their creator's Cozy while the sharing is active), included images are shown as missing because we can't find their associated `io.cozy.notes.images` documents. However, the image binaries themselves are stored wihtin the note's binary (which is an archive in this case) and thus can be imported on the recipient's Cozy as `io.cozy.notes.images` documents and the note content can be updated to reference these documents. After that, the images will be displayed as expected when opening the note.
- Loading branch information
1 parent
efbfe9c
commit 8c60876
Showing
3 changed files
with
135 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters