  content.chatbadges.forEach(badge => {
                        if (typeof badge === 'string') {
                            const img = document.createElement('img');
                            img.className = 'badge';
                            img.src = badge;
                            badges.appendChild(img);
                        } else if (badge.src) {
                            const img = document.createElement('img');
                            img.className = 'badge';
            