mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 05:48:59 +08:00
fix: temp fix broadcast storm
This commit is contained in:
@@ -412,7 +412,6 @@ export class YjsAdapter implements AsyncDatabaseAdapter<YjsContentOperation> {
|
|||||||
binary?: ArrayBufferLike;
|
binary?: ArrayBufferLike;
|
||||||
}
|
}
|
||||||
): Promise<YjsBlockInstance> {
|
): Promise<YjsBlockInstance> {
|
||||||
console.trace('createBlock', options);
|
|
||||||
const uuid = options.uuid || `affine${nanoid(16)}`;
|
const uuid = options.uuid || `affine${nanoid(16)}`;
|
||||||
if (options.type === BlockTypes.binary) {
|
if (options.type === BlockTypes.binary) {
|
||||||
if (options.binary && options.binary instanceof ArrayBuffer) {
|
if (options.binary && options.binary instanceof ArrayBuffer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user