persisting.js
function updateBatchWithPriorState(batch, item, context) {
  restoreMessageAndRejectedMessageStates(batch, item, context);
  restoreUnusableRecordStates(batch, item, context);
}
function updateBatchWithPriorState(batch, item, context) {
  restoreMessageAndRejectedMessageStates(batch, item, context);
  restoreUnusableRecordStates(batch, item, context);
}
function updateBatchWithPriorState ( batch , item , context ) { restoreMessageAndRejectedMessageStates ( batch , item , context ) ; restoreUnusableRecordStates ( batch , item , context ) ; }
Updates the given batch with the previous message states, previous unusable record states and previous batch state on
the given item, which was loaded from the database.
@param {Batch} batch - the batch to update
@param {BatchStateItem} item - a previously loaded batch state item
@param context
Updates the given batch with the previous message states previous unusable record states and previous batch state on the given item which was loaded from the database .