diff --git a/src/sync/SyncMessageService.ts b/src/sync/SyncMessageService.ts index 0bf6bd0..9cdce37 100644 --- a/src/sync/SyncMessageService.ts +++ b/src/sync/SyncMessageService.ts @@ -147,10 +147,13 @@ export class SyncMessageService extends Service { logootSAddMsg, logootSDelMsg, }: proto.RichLogootSOperationMsg): RichLogootSOperation { + const addOpe = LogootSAdd.fromPlain(logootSAddMsg) + const delOpe = LogootSDel.fromPlain(logootSDelMsg) + console.log('operation :', addOpe, delOpe) return RichLogootSOperation.fromPlain({ id, clock, - logootSOp: logootSAddMsg || logootSDelMsg, + logootSOp: addOpe || delOpe, dependencies, }) as RichLogootSOperation }