fix(ios): fix mobile blob storage (#8702)

This commit is contained in:
EYHN
2024-11-05 11:16:00 +00:00
parent c0d802a169
commit 4977055a2e
5 changed files with 60 additions and 37 deletions
@@ -6,7 +6,11 @@ import { useNavigateHelper } from '@affine/core/components/hooks/use-navigate-he
import { PageDetailEditor } from '@affine/core/components/page-detail-editor';
import { SharePageNotFoundError } from '@affine/core/components/share-page-not-found-error';
import { AppContainer } from '@affine/core/desktop/components/app-container';
import { AuthService, FetchService } from '@affine/core/modules/cloud';
import {
AuthService,
FetchService,
GraphQLService,
} from '@affine/core/modules/cloud';
import {
type Editor,
type EditorSelector,
@@ -147,7 +151,7 @@ const SharePageInner = ({
}) => {
const workspacesService = useService(WorkspacesService);
const fetchService = useService(FetchService);
const graphQLService = useService(GraphQLService);
const [workspace, setWorkspace] = useState<Workspace | null>(null);
const [page, setPage] = useState<Doc | null>(null);
const [editor, setEditor] = useState<Editor | null>(null);
@@ -181,7 +185,9 @@ const SharePageInner = ({
return EmptyBlobStorage;
},
getRemoteBlobStorages() {
return [new CloudBlobStorage(workspaceId, fetchService)];
return [
new CloudBlobStorage(workspaceId, fetchService, graphQLService),
];
},
}
);
@@ -221,6 +227,7 @@ const SharePageInner = ({
workspaceBinary,
docBinary,
fetchService,
graphQLService,
]);
const pageTitle = useLiveData(page?.title$);