[CHATWOOT] - Group messages: hide or replace the @lid code after the participant name

オープン 初心者向け
#2,369 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
77/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, typescript
領域
api, backend

調査の方向性

apps/chatwoot/consumers/waha/base.jsから始めて、participantがwhatsapp.group.messageテンプレートに渡される方法を追い、findPNByLidが参加者の電話番号をどのように解決するかを確認してください。既存のparticipantの値を互換性のために維持しながら、列挙された書式設定オプションのいずれかを実装してください。グループメッセージで不透明な@lid識別子を省略または置換でき、既存のカスタムテンプレートも引き続き動作すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Is your feature request related to a problem? Please describe.

In the Chatwoot App, incoming group messages show the author as Name (identifier). Since WhatsApp moved group participants to LIDs, that identifier is now an opaque code, e.g.:

👥 Ana (138478520127698@lid)

For agents in Chatwoot the code is noise: it says nothing and makes every group message harder to read. Before LIDs it was the phone number, which was at least useful.

The format is hardcoded in apps/chatwoot/consumers/waha/base.js:

participant = `${name} (${participant})`;

and the whatsapp.group.message template only receives the combined participant string, so custom templates cannot change it.

Describe the solution you'd like

Any of these would solve it (the first one is the most flexible):

  1. Pass the parts to the template as separate variables (e.g. participantName, participantId, and participantPhone when the LID can be resolved with findPNByLid), keeping participant as it is today for backwards compatibility. Then each user can choose the format with the existing templates option.
  2. When the participant is a @lid and the phone number is known, show the phone instead of the LID: Ana (+34 600 000 000).
  3. An option to show only the name when it is available.

Describe alternatives you've considered

Patching the compiled file in our container, but it has to be reviewed on every WAHA update.

Additional context

WAHA 2026.9.2 (devlikeapro/waha:gows-arm), Chatwoot App with es-ES locale, Chatwoot 4.18.

主要言語
TypeScript
スター
7.6k
フォーク
1.8k
平均マージ
4日 20時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

devlikeapro/waha のほかの issue

devlikeapro/waha の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。