diff options
author | bobzel <zzzman@gmail.com> | 2021-08-09 14:26:14 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-08-09 14:26:14 -0400 |
commit | 81ae5175aebf7e14a781a73d4a7cbaec0b8f3e4a (patch) | |
tree | bf6a46eaa3899048e13e28a99f375b3a0c34bd8a /src/client/util/SharingManager.tsx | |
parent | 8480bcbe9e5ddea4bac64273c2e6581d36bb49de (diff) |
fixed augment only text to resize correctly with autoheight. fixed acls to cache correctly for new documents. fixed links to be shared across users. fixed links to always default to public.
Diffstat (limited to 'src/client/util/SharingManager.tsx')
-rw-r--r-- | src/client/util/SharingManager.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx index a8972b988..6c4556250 100644 --- a/src/client/util/SharingManager.tsx +++ b/src/client/util/SharingManager.tsx @@ -23,6 +23,7 @@ import { GroupManager, UserOptions } from "./GroupManager"; import { GroupMemberView } from "./GroupMemberView"; import { SelectionManager } from "./SelectionManager"; import "./SharingManager.scss"; +import { LinkManager } from "./LinkManager"; export interface User { email: string; @@ -154,10 +155,11 @@ export class SharingManager extends React.Component<{}> { } }); return Promise.all(evaluating).then(() => { - runInAction(() => { + runInAction(async () => { for (const sharer of sharingDocs) { if (!this.users.find(user => user.user.email === sharer.user.email)) { this.users.push(sharer); + LinkManager.addLinkDB(sharer.linkDatabase); } } }); |