Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix upload/download progress not working

ammarahm-edf93ee4e4b679
diff --git a/apps/mobile/src/provider/stores.ts b/apps/mobile/src/provider/stores.ts
index e7852c846..8802b9a47 100644
--- a/apps/mobile/src/provider/stores.ts
+++ b/apps/mobile/src/provider/stores.ts
@@ -191,7 +191,7 @@ export const useAttachmentStore = create<AttachmentStore>((set, get) => ({
tiny.call(EditorWebView, `
(function() {
let progress = ${JSON.stringify(progress)}
- tinymce.activeEditor.execCommand("mceUpdateAttachmentProgress",progress);
+ tinymce.activeEditor._updateAttachmentProgress("mceUpdateAttachmentProgress",progress);
})()`);
set({ progress: { ..._p } });
},