aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2022-06-20 19:36:09 -0400
committermehekj <mehek.jethani@gmail.com>2022-06-20 19:36:09 -0400
commit9f3a7db18b9461bcc228c9fd554c610da255dab8 (patch)
tree0b83d25af592dba6ccd7d79a452ebb48551c8342 /src/client/util/DocumentManager.ts
parent9819886735988e448d09a292b3369e19f4a79a61 (diff)
parentc415fb65e3d87b851015fb2ac7c41361609e0719 (diff)
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index a82f99d5a..0435cd535 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -10,6 +10,7 @@ import { CollectionView } from '../views/collections/CollectionView';
import { LightboxView } from '../views/LightboxView';
import { DocumentView, ViewAdjustment } from '../views/nodes/DocumentView';
import { LinkAnchorBox } from '../views/nodes/LinkAnchorBox';
+import { CurrentUserUtils } from './CurrentUserUtils';
import { ScriptingGlobals } from './ScriptingGlobals';
import { SelectionManager } from './SelectionManager';
@@ -296,7 +297,7 @@ export function DocFocusOrOpen(doc: Doc, collectionDoc?: Doc) {
Doc.linkFollowHighlight(dv?.props.Document, false);
}
else {
- const context = doc.context !== Doc.UserDoc().myFilesystem && Cast(doc.context, Doc, null);
+ const context = doc.context !== CurrentUserUtils.MyFilesystem && Cast(doc.context, Doc, null);
const showDoc = context || doc;
const bestAlias = showDoc === Doc.GetProto(showDoc) ? DocListCast(showDoc.aliases).find(doc => !doc.context && doc.author === Doc.CurrentUserEmail) : showDoc;