@japofc/baileys - v2.4.7
    Preparing search index...

    Function upsertParticipants

    • Add participants, merging into the existing entry when the person is already listed under either identity (so a replayed add cannot duplicate a member). Order-preserving and non-mutating. See BUGREPORT §2.52.

      Type Parameters

      Parameters

      • participants: T[] | null | undefined
      • incoming: ParticipantLike[] | null | undefined

      Returns T[]