623
624
protected override _reconcile(envelope: ActionEnvelope, isOwnAction: boolean): void {
626
>
const index = this._pendingActions.findIndex(pending => pending.clientSeq === envelope.origin!.clientSeq);
627
>
if (index !== -1) {
628
>
if (!envelope.rejectionReason) {
629
>
this._confirmedApply(envelope.action);
630
>
}
631
>
this._pendingActions.splice(index, 1);
632
>
} else {
633
this._confirmedApply(envelope.action);
634
}
636
this._confirmedApply(envelope.action);
637
}
639
>
}
640
641
private _confirmedApply(action: StateAction): void {
643
>
this._confirmedState = this._applyReducer(this._confirmedState, action);
644
>
}
645
>
}
646
647
private _recomputeOptimistic(): void {