---
url: https://talkjs.com/docs/UI_Components/JavaScript/Classic/Themes/Detect_Group_Chat/
title: "Detect group chats in theme editor | JavaScript Classic"
---

For AI agents: Find a documentation index at https://talkjs.com/llms.txt (full content at https://talkjs.com/llms-full.txt). Get a markdown version of any page by appending .md to its URL path.

# Detect group chats in theme editor

Show different content in your theme for group chats.

You can use the theme editor to detect group chats. To detect group chats using your theme editor, take the following steps:

1.  Login to your TalkJS [dashboard](https://talkjs.com/dashboard/), and go to the **Themes** page.
2.  Find the theme for which you'd like to detect group chats, and select **Edit**.
3.  In the theme component in which you'd like to detect group chats, use the variable `conversation.isGroupChat`. Your changes are saved automatically.

## Example

For example, if in the [ConversationImage](https://talkjs.com/docs/UI_Components/JavaScript/Classic/Themes/Components/ConversationImage/) theme component you'd like to show participant avatars for conversations that are group chats, you can use:

```
<GroupChatImage t:if="{{ conversation.isGroupChat }}" participants="{{ conversation.participants }}" />
```

A conversation counts as a group chat (and so `conversation.isGroupChat` is `true`) when either of the following holds:

-   The chat has three or more [participants](https://talkjs.com/docs/Concepts/Participants/)
-   The chat has no participants, only [guests](https://talkjs.com/docs/Concepts/Guests/)
