Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): render WhatsApp formatting in channel posts, hide unknown subscriber counts
Yudhi Armyndharis82b0e938e467
diff --git a/dashboard/src/pages/Chats.tsx b/dashboard/src/pages/Chats.tsxindex 209fd0a69..992862fc3 100644--- a/dashboard/src/pages/Chats.tsx+++ b/dashboard/src/pages/Chats.tsx@@ -1122,11 +1122,13 @@ export function Chats() {<div className="chat-item-top"><span className="chat-item-name">{ch.name}</span></div>- <div className="chat-item-bottom">- <span className="chat-item-snippet">- {t('chats.channels.subscribers', { count: ch.subscriberCount ?? 0 })}- </span>- </div>+ {ch.subscriberCount != null && (+ <div className="chat-item-bottom">+ <span className="chat-item-snippet">+ {t('chats.channels.subscribers', { count: ch.subscriberCount })}+ </span>+ </div>+ )}</div></div>))@@ -1575,7 +1577,7 @@ export function Chats() {(channelMessages.data ?? []).map(m => (<div key={m.id} className="message-bubble incoming">{m.hasMedia && m.mediaUrl && <img className="channel-media" src={m.mediaUrl} alt="" />}- {m.body && <div className="message-text">{m.body}</div>}+ {m.body && <MessageBody text={m.body} className="message-text" />}<span className="message-time">{formatChatTime(m.timestamp)}</span></div>))