mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-26 21:18:34 +08:00
For chat group DMs, currently we always show the number of other users in the group DM, even if there is only 1 other user. This looks a little weird, and for our own use case of an AI helper bot on new sites, it's a little unfreindly to see a (1) instead of the avatar of the bot. This commit modifies the ChannelIcon logic to show the avatar of the other user in a group DM if there is only 1 other user. If there is > 1 other user, we still show the count/emoji as appropriate. **Before** <img width="241" height="44" alt="image" src="https://github.com/user-attachments/assets/727f1c85-901f-4d43-9a00-f7e16b7b4737" /> **After** <img width="252" height="43" alt="image" src="https://github.com/user-attachments/assets/999e5dbd-d2ee-4345-8ca1-c3cd50f5e606" /> |
||
|---|---|---|
| .. | ||
| javascripts | ||