Ensure that note is created when inserting an image

Fixes #3155
This commit is contained in:
Martynas Bagdonas 2023-06-06 16:20:10 +03:00
parent 5e41b3ab4d
commit 785dcb30c3

View file

@ -633,6 +633,7 @@ class EditorInstance {
return;
}
case 'importImages': {
await this._ensureNoteCreated();
let { images } = message;
if (this._readOnly || this._filesReadOnly) {
return;