date notes respect their parent's isProtected status, #1483

This commit is contained in:
zadam
2020-12-21 23:00:39 +01:00
parent a1b2e22ba5
commit cc3addebd4
3 changed files with 12 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
import utils from "./utils.js";
import dateNoteService from "./date_notes.js";
import hoistedNoteService from "./hoisted_note.js";
import protectedSessionHolder from './protected_session_holder.js';
import server from "./server.js";
import appContext from "./app_context.js";
import Component from "../widgets/component.js";
@@ -69,7 +69,7 @@ export default class Entrypoints extends Component {
title: 'new note',
content: '',
type: 'text',
isProtected: inboxNote.isProtected
isProtected: inboxNote.isProtected && protectedSessionHolder.isProtectedSessionAvailable()
});
await ws.waitForMaxKnownEntityChangeId();