crashcat docs
    Preparing search index...

    Function destroyPairChain

    • Destroy every contact in a pair record's chain.

      When queueEvents is true the removal payloads are pushed onto pendingContactRemoved instead of fired (the body-removal path, where the listener is unavailable — same pattern as the deferred body-removal events). The whole chain is freed and the record's head reset to empty.

      Parameters

      • contacts: Contacts

        global contact state

      • pairs: Pairs

        persistent pair state (holds the per-record chain heads)

      • rec: number

        pair record index whose chain should be destroyed

      • listener: Listener | undefined

        optional contact listener to notify of removal (ignored when queueEvents)

      • queueEvents: boolean

        queue removal events onto pendingContactRemoved instead of firing them

      Returns void