touch protected session during note update

This commit is contained in:
zadam
2020-04-25 11:09:07 +02:00
parent ac608b9334
commit 71d248cd87
6 changed files with 18 additions and 7 deletions

View File

@@ -69,10 +69,7 @@ class TabContext extends Component {
}
}, 5000);
if (this.note.isProtected && protectedSessionHolder.isProtectedSessionAvailable()) {
// FIXME: there are probably more places where this should be done
protectedSessionHolder.touchProtectedSession();
}
protectedSessionHolder.touchProtectedSessionIfNecessary(this.note);
if (triggerSwitchEvent) {
this.triggerEvent('tabNoteSwitched', {