Skip to content

Commit 227823f

Browse files
committed
fix(chatwoot): extract content from pollCreationMessage and groupInviteMessage
Two more common person-to-person message types with no content extractor in getTypeMessage(), so they'd have fallen into the new generic placeholder instead of showing real content: poll questions (pollCreationMessage.name) and group invite links (groupInviteMessage .caption, falling back to .groupName).
1 parent 98e8a44 commit 227823f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,8 @@ export class ChatwootService {
17861786
albumMessage: msg?.albumMessage
17871787
? `[álbum: ${msg.albumMessage.expectedImageCount ?? 0} foto(s), ${msg.albumMessage.expectedVideoCount ?? 0} vídeo(s)]`
17881788
: undefined,
1789+
pollCreationMessage: msg?.pollCreationMessage?.name,
1790+
groupInviteMessage: msg?.groupInviteMessage?.caption || msg?.groupInviteMessage?.groupName,
17891791
};
17901792

17911793
return types;

0 commit comments

Comments
 (0)