# Inconsistent behavior with \`chat max direct message users\` setting

**URL:** https://meta.discourse.org/t/inconsistent-behavior-with-chat-max-direct-message-users-setting/369971
**Category:** Bug
**Tags:** chat
**Created:** [June 12, 2025, 10:39pm UTC](https://meta.discourse.org/t/inconsistent-behavior-with-chat-max-direct-message-users-setting/369971 "2025-06-12T22:39:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 12, 2025, 10:39pm UTC](https://meta.discourse.org/t/inconsistent-behavior-with-chat-max-direct-message-users-setting/369971/1 "2025-06-12T22:39:04Z")

</div>

[How to disable Group chat? - #4 by sallypf](https://meta.discourse.org/t/how-to-disable-group-chat/368709/4) has made me think about whether 1 or 2 is the correct choice to limit chats to two members. So I tried, and for testing purposes, I reduced `chat max direct message users` to two. Then I created two users and a group to which I added these two users.

 ![chat max direct message users: Users cannot add more than this number of other users when creating a new direct message. Set to 0 to only allow messages to oneself. Staff are exempt from this setting.](https://global.discourse-cdn.com/meta/original/4X/a/5/6/a561320ecaaf1c457d6c15f32b3dfd65711e8188.png)

I have the impression that the effect of the setting is inconsistent.

### Creating a group chat by adding individual users:

1. Click + to create a new chat
2. Select “new group chat”
3. Add the users you created; notice it says 2/2 members  
 ![2/2 members](https://global.discourse-cdn.com/meta/original/4X/0/7/1/071c4b33273c742ce18071f20a7c3e37d9396a8c.png)
4. Check the members of the created chat  
 ![3 members](https://global.discourse-cdn.com/meta/original/4X/f/e/1/fe104ea3c38c977869424875d4f02835e6f24c43.png)  
Because you were added too, the chat actually has 3 members.
5. Try to add a member; it doesn’t work because there are 3/2 members  
 ![3/2 members](https://global.discourse-cdn.com/meta/original/4X/2/4/0/2407db2062728399337a32beedc9fd73b491eb56.png)
6. Remove one of the users
7. Try to add them; it doesn’t work because there are already 2/2 members  
 ![2/2 members](https://global.discourse-cdn.com/meta/original/4X/7/7/7/777bb2e9a2b724a8e9947cd380ce1377f33952b7.png)

### Creating a group chat by adding a group:

1. Click + to create a new chat
2. Enter the group’s name; you aren’t allowed to create a group chat because the group has two members.  
 ![group has too many members (2)](https://global.discourse-cdn.com/meta/original/4X/3/8/9/3892aa669547cf2d261d47640ae8663fc5b5dbe4.png)

This makes me wonder: is the chat creator counted toward the limit or not?

When creating a chat by adding two individual users, it works - even though that results in 3 members once the chat is created (because I’m included too). But if I try to create the same chat using a group with two users, it’s not allowed. After creation, I also can’t add a second user if one is already in the chat with me, which suggests that I _am_ counted at that point.

The description of the `chat max direct message users` setting says that setting it to 0 means users can only message themselves. That would only make sense if the current user isn’t counted. So in that sense, the behavior during creation seems to match what the description says. But then I’d expect the limit _after_ creation to also allow 3 members total (me + 2), and that creating a chat with a group with 2 members should work the same way.

Right now, creating a chat with two users only works in one case — by adding them individually — and that feels inconsistent.

* * *

And by the way, I did all this as an admin, so I am not sure the

> Staff are exempt from this setting

in the description is true.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 17, 2025, 7:49am UTC](https://meta.discourse.org/t/inconsistent-behavior-with-chat-max-direct-message-users-setting/369971/2 "2025-06-17T07:49:45Z")

</div>

> [@Moin](#):
>
> ### Creating a group chat by adding a group:
> 
> 1. Click + to create a new chat
> 2. Enter the group’s name; you aren’t allowed to create a group chat because the group has two members.
> 
> ![group has too many members (2)](https://global.discourse-cdn.com/meta/original/4X/3/8/9/3892aa669547cf2d261d47640ae8663fc5b5dbe4.png)

This is the same if you remove one of your test users from the group and instead add yourself. Then the group has two members, but one of them is you, so the chat created would only have two members. However, it doesn’t work to create the chat because the group has too many members.

 ![group has too many members (2)](https://global.discourse-cdn.com/meta/original/4X/a/9/e/a9eb45b33199a220c379cbd6b40173a2966f82e1.jpeg)

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [July 14, 2025, 10:55am UTC](https://meta.discourse.org/t/inconsistent-behavior-with-chat-max-direct-message-users-setting/369971/3 "2025-07-14T10:55:43Z")

</div>

> [@Moin](#):
>
> This makes me wonder: is the chat creator counted toward the limit or not?

Only other users is counted towards the limit, which is in line with the setting description. It mentions “ **number of other users** when creating a direct message”:

> [@](#):
>
> ![](https://global.discourse-cdn.com/meta/original/4X/a/5/6/a561320ecaaf1c457d6c15f32b3dfd65711e8188.png)

I think the bug here is mainly visual but I agree that it is very confusing.

We probably want to update all counts in the UI to be 3/3 for DMs (based on your example) to account to the current user.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [July 14, 2025, 11:20am UTC](https://meta.discourse.org/t/inconsistent-behavior-with-chat-max-direct-message-users-setting/369971/4 "2025-07-14T11:20:33Z")

</div>

> [@davidb](#):
>
> I think the bug here is mainly visual

Why do you think it’s mainly visual? The fact that I cannot add a user after removing them is a functional issue.

> [@Moin](#):
>
> Try to add them; it doesn’t work because there are already 2/2 members
> 
> ![2/2 members](https://global.discourse-cdn.com/meta/original/4X/7/7/7/777bb2e9a2b724a8e9947cd380ce1377f33952b7.png)

And the fact that I cannot create a chat with a group that has two members isn’t just a visual problem either.

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [July 14, 2025, 11:24am UTC](https://meta.discourse.org/t/inconsistent-behavior-with-chat-max-direct-message-users-setting/369971/5 "2025-07-14T11:24:24Z")

</div>

Ah right, I see. It looks like chat groups is handling the limit differently than regular DM chats.

---

<div class="post-metadata">

### Author: ![Earnie\_Baird](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earnie_baird/32/380079_2.png) [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)
#### Post date: [August 5, 2025, 12:45pm UTC](https://meta.discourse.org/t/inconsistent-behavior-with-chat-max-direct-message-users-setting/369971/6 "2025-08-05T12:45:17Z")

</div>

hey @davidb - it looks like staff ARE affected by the setting on max direct message users as far as I can tell which seems like a bug. Staff are hitting the same limit that regular users do.

Any chance you can take a look at some point? Would be a great one to fix.

Thaks!
