mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
chore(infra): remove compatible code (#6833)
This commit is contained in:
@@ -11,11 +11,6 @@ export type DocEvent =
|
||||
docId: string;
|
||||
update: Uint8Array;
|
||||
clientId: string;
|
||||
}
|
||||
| {
|
||||
type: 'LegacyClientUpdateCommitted';
|
||||
docId: string;
|
||||
update: Uint8Array;
|
||||
};
|
||||
|
||||
export interface DocEventBus {
|
||||
|
||||
@@ -254,13 +254,6 @@ export class DocEngineLocalPart {
|
||||
});
|
||||
}
|
||||
},
|
||||
LegacyClientUpdateCommitted: ({ docId, update }) => {
|
||||
this.schedule({
|
||||
type: 'save',
|
||||
docId,
|
||||
update,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
handleDocUpdate = (update: Uint8Array, origin: any, doc: YDoc) => {
|
||||
|
||||
Reference in New Issue
Block a user