Skip to content

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

mobile: accept shared title in extension

Ammar Ahmed6261f3f2c69c
diff --git a/apps/mobile/share/share.js b/apps/mobile/share/share.js
index c7c6ad2c3..246e2c6c7 100644
--- a/apps/mobile/share/share.js
+++ b/apps/mobile/share/share.js
@@ -204,6 +204,14 @@ const ShareView = () => {
note.content.data = makeHtmlFromPlainText(item.value);
}
noteContent.current = note.content.data;
+ } else if (item.type === "extras") {
+ for (const key in item) {
+ if (!key) continue;
+ if (key.includes("TITLE") || key.includes("SUBJECT")) {
+ note.title = item[key];
+ console.log("Note title will be", note.title);
+ }
+ }
} else {
const user = await db.user.getUser();
if (user && user.subscription.type !== 0) {