Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(dashboard): correct the sent-bubble body comment for audio

Yudhi Armyndharis026d17e3ba44
diff --git a/dashboard/src/components/chats/ChatComposer.tsx b/dashboard/src/components/chats/ChatComposer.tsx
index e8a8795e2..3cf5ba212 100644
--- a/dashboard/src/components/chats/ChatComposer.tsx
+++ b/dashboard/src/components/chats/ChatComposer.tsx
@@ -212,8 +212,9 @@ function ChatComposer({
setSending(true);
const tempId = `temp_${Date.now()}`;
- // The body the gateway stores for each type: image and video keep only the caption, a document its
- // caption or else its filename, and audio its filename (the thread hides a body equal to it).
+ // Mirrors the body the gateway stores: image and video keep only the caption, and a document its caption
+ // or else its filename. Audio stores none; its filename stands in here because the thread hides a body
+ // equal to it.
const tempMessage: ChatMessageView = {
id: tempId,
chatId: activeChat.id,