message: Fix newListener bug for dirty/saved events
diff: @@ -175,7 +175,7 @@ export async function waitContainerToCatchUp(container: Container) {
  throw new Error("Container is closed");
  }
  - return new Promise<boolean>((accept, reject) => {
  + return new Promise<boolean>((resolve, reject) => {
  const deltaManager = container.deltaManager;
  container.on("closed", reject);
  @@ -189,12 +189,12 @@ export async function waitContainerToCatchUp(container: Container) {
  assert(deltaManager.lastSequenceNumber <= connectionOpSeqNumber,
  0x266 /* "lastKnownSeqNumber should never be below last processed sequence number" */);
  if (deltaManager.lastSequenceNumber === connectionOpSeqNumber) {
  - accept(hasCheckpointSequenceNumber);
  + resolve(hasCheckpointSequenceNumber);
  return;
  }
  const callbackOps = (message: ISequencedDocumentMessage) => {
  if (connectionOpSeqNumber <= message.sequenceNumber) {
  - accept(hasCheckpointSequenceNumber);
  + resolve(hasCheckpointSequenceNumber);
  deltaManager.off("op", callbackOps);
  }
  };
  @@ -672,12 +672,12 @@ export class Container extends EventEmitterWithErrorHandling<IContainerEvents> i
  switch (event) {
  case dirtyContainerEvent:
  if (this._dirtyContainer) {
  - listener(this._dirtyContainer);
  + listener(dirtyContainerEvent);
  }
  break;
  case savedContainerEvent:
  if (!this._dirtyContainer) {
  - listener(this._dirtyContainer);
  + listener(savedContainerEvent);
  }
  break;
  case connectedEventName:
  