Cotal TypeScript packages
    Preparing search index...

    Function settlePublish

    • What a publish outcome leaves. Stored clears the draft only when it still holds what was sent, and answers a reply once: a recipient not changed during the send (the same object) drops its replyTo. Stored to an offline agent, or an unknown outcome, adds a notice; an unknown outcome is never resent. A refusal changes nothing.

      Parameters

      Returns {
          draft: string;
          notice?: { text: string; tone: "waiting" };
          recipient: Recipient | undefined;
      }