mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 08:53:27 +03:00
unuse code
This commit is contained in:
parent
3a9aa99ee9
commit
97007f3bb5
@ -8,7 +8,7 @@ import Labels from './labels';
|
|||||||
import Pages from './pages';
|
import Pages from './pages';
|
||||||
|
|
||||||
export function WorkspaceContainer() {
|
export function WorkspaceContainer() {
|
||||||
const { workspace_id, page_id } = useParams();
|
const { workspace_id } = useParams();
|
||||||
const { user, currentSpaceId } = useUserAndSpaces();
|
const { user, currentSpaceId } = useUserAndSpaces();
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -3,7 +3,6 @@ import * as encoding from 'lib0/encoding';
|
|||||||
import * as awarenessProtocol from 'y-protocols/awareness';
|
import * as awarenessProtocol from 'y-protocols/awareness';
|
||||||
import * as syncProtocol from 'y-protocols/sync';
|
import * as syncProtocol from 'y-protocols/sync';
|
||||||
import * as Y from 'yjs';
|
import * as Y from 'yjs';
|
||||||
|
|
||||||
import { Message } from './handler';
|
import { Message } from './handler';
|
||||||
import { readMessage } from './processor';
|
import { readMessage } from './processor';
|
||||||
import { WebsocketProvider } from './provider';
|
import { WebsocketProvider } from './provider';
|
||||||
@ -14,7 +13,7 @@ export const registerBroadcastSubscriber = (
|
|||||||
document: Y.Doc
|
document: Y.Doc
|
||||||
) => {
|
) => {
|
||||||
const channel = provider.broadcastChannel;
|
const channel = provider.broadcastChannel;
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const subscriber = (data: ArrayBuffer, origin: any) => {
|
const subscriber = (data: ArrayBuffer, origin: any) => {
|
||||||
if (origin !== provider) {
|
if (origin !== provider) {
|
||||||
const encoder = readMessage(provider, new Uint8Array(data), false);
|
const encoder = readMessage(provider, new Uint8Array(data), false);
|
||||||
|
Loading…
Reference in New Issue
Block a user