[PR #52] [MERGED] fix: group wont sending because validating (-) #61

Closed
opened 2026-02-27 10:25:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mimamch/wa-multi-session/pull/52
Author: @iniadil
Created: 5/24/2025
Status: Merged
Merged: 6/9/2025
Merged by: @mimamch

Base: masterHead: master


📝 Commits (3)

  • 51e0cf3 fix: group wont sending because validating (-)
  • 4a4326c Merge branch 'master' into master
  • 21cbc56 refactor(phoneToJid): streamline logic and improve readability

📊 Changes

1 file changed (+20 additions, -4 deletions)

View changed files

📝 src/Utils/phone-to-jid.ts (+20 -4)

📄 Description

  1. Modified the phoneToJid function to properly handle hyphenated phone numbers
  2. Added specific logic to detect and preserve group JID formats (numbers-hyphen-numbers pattern)
  3. Only removes hyphens for regular phone numbers, keeping them intact for group identifiers
  4. Ensures proper suffix application (@g.us for groups, @s.whatsapp.net for individual contacts)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mimamch/wa-multi-session/pull/52 **Author:** [@iniadil](https://github.com/iniadil) **Created:** 5/24/2025 **Status:** ✅ Merged **Merged:** 6/9/2025 **Merged by:** [@mimamch](https://github.com/mimamch) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`51e0cf3`](https://github.com/mimamch/wa-multi-session/commit/51e0cf3c084652885fbc9227010efb59675d42d2) fix: group wont sending because validating (-) - [`4a4326c`](https://github.com/mimamch/wa-multi-session/commit/4a4326c02b938b148a52511a61c7c39ab48c1147) Merge branch 'master' into master - [`21cbc56`](https://github.com/mimamch/wa-multi-session/commit/21cbc56a5573ec4bf61df7a452e37e7553910f24) refactor(phoneToJid): streamline logic and improve readability ### 📊 Changes **1 file changed** (+20 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/Utils/phone-to-jid.ts` (+20 -4) </details> ### 📄 Description 1. Modified the phoneToJid function to properly handle hyphenated phone numbers 2. Added specific logic to detect and preserve group JID formats (numbers-hyphen-numbers pattern) 3. Only removes hyphens for regular phone numbers, keeping them intact for group identifiers 4. Ensures proper suffix application (@g.us for groups, @s.whatsapp.net for individual contacts) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:25:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wa-multi-session-mimamch#61
No description provided.