You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-13 22:12:50 +02:00
Mobile: Fixed bug where photo was not displayed just after having taken it
This commit is contained in:
@@ -446,13 +446,15 @@ class NoteScreenComponent extends BaseScreenComponent {
|
|||||||
const fileStat = await shim.fsDriver().stat(targetPath);
|
const fileStat = await shim.fsDriver().stat(targetPath);
|
||||||
resource.size = fileStat.size;
|
resource.size = fileStat.size;
|
||||||
|
|
||||||
await Resource.save(resource, { isNew: true });
|
resource = await Resource.save(resource, { isNew: true });
|
||||||
|
|
||||||
const resourceTag = Resource.markdownTag(resource);
|
const resourceTag = Resource.markdownTag(resource);
|
||||||
|
|
||||||
const newNote = Object.assign({}, this.state.note);
|
const newNote = Object.assign({}, this.state.note);
|
||||||
newNote.body += "\n" + resourceTag;
|
newNote.body += "\n" + resourceTag;
|
||||||
this.setState({ note: newNote });
|
this.setState({ note: newNote });
|
||||||
|
|
||||||
|
this.refreshResource(resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
async attachPhoto_onPress() {
|
async attachPhoto_onPress() {
|
||||||
|
Reference in New Issue
Block a user