WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
4.08k stars 1.38k forks source link

feat: remove label feature #1083

Closed jianhuihi closed 1 month ago

jianhuihi commented 1 month ago

Changes

Motivation

As per the discussion in issue #1069, the label feature is no longer needed. Removing it helps in reducing code complexity and improving maintainability.

Testing

Related Issues

Fixes #1069

whiskeysockets-bot commented 1 month ago

Thanks for your contribution.

The next step is to wait for review and approval to merge it to main repository

The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it.

To test this PR you can run the following command below:

# NPM
npm install @whiskeysockets/baileys@jianhuihi/Baileys#removelabel
# YARN v2
yarn add @whiskeysockets/baileys@jianhuihi/Baileys#removelabel
DavidsonGomes commented 1 month ago

How does removing the function solve the problem of not being able to create, edit and delete labels?

jianhuihi commented 1 month ago

How does removing the function solve the problem of not being able to create, edit and delete labels?

You can use the add function for creating and editing labels: https://github.com/WhiskeySockets/Baileys/pull/955

bobslavtriev commented 1 month ago

2 same codes, in 2 different PR??????? Both have update contact, both have remove label.

Make up your mind!