📣 Introducing default chat channels (automatically add users)

So if I have chat allowed groups set to tl1 user and allow a channel to auto add users which linked to a tl0 accessible category, what will happen? Does this later option overwrite the former one?

3 Likes

It should respect both settings and only tl1 users will be added in this case.

5 Likes

Thx for the reply, I see the linked channel (which is linked to a tl0 accessible category) shows it has around 1700 members, but my tl0 users are around 4000 as shown on the group page, I have removed the tl1 restriction, but the number doesn’t increase. Is there a data delay or any settings will also affect this number?

2 Likes

Currently the users get added to the channel based on the category permissions, but those outside of the chat allowed groups simply can’t see any chat features at all and so don’t have access. There are a couple of other criteria that go into whether they’re ‘active’ or not and get scooped up into being added, which may account for the difference in numbers:

5 Likes

I’m experiencing the same issue that @sdpiowa identified earlier in this thread:

I understand from this thread that only “active” users join the channel. That’s fine – though the label on the option should be updated to more accurately describe the feature.

What remains unclear to me is whether this check is run periodically. In other words, if a previously inactive user interacts with the site tomorrow will they automatically join the chat channel or not?

4 Likes

Any confirmation on my question above?

2 Likes

I guess by now you should have empirical evidence?

I can’t quite tell what subject.execute(chat_channel_id: channel.id, starts_at: user.id, ends_at: user.id) does in the spec, but I think that those users are added continually.

2 Likes

On my forum returning users will be added continually. Sure, there can be somekind delay, but it can’t be long.

(That shows one metric I could guess quite many community admins dislike :wink: It tells directly how many pseudo users that community has…)

2 Likes

Yep, the job runs every hour and should cover this scenario.

Definitely open to suggestions to improve the copy here to make this part more clear!

7 Likes

Well, the current copy is “Automatically add all new and existing users”, which is clearly false.

How about “Automatically add users who [whatever the criteria are]”?

3 Likes

Here’s a first pass:

7 Likes

Check hourly which users have been active in the last 3 months. Add them to this channel if they have access to the Beginners Feedback category.

Could I get some clarification on what ‘access’ means exactly? I have a category where everyone can see, but only certain groups can create or reply. It seems to me that the users who can only see shouldn’t be added to the channel automatically, and shouldn’t be able to participate at all in that channel until they are in the group. Maybe it works this way already, but I want to make sure before moving forward. Thanks!

3 Likes

As of December, “reply” permission is required to be able to join (access) a channel:

So I believe this now works as you’d like it to work for your scenario.

5 Likes

Thanks Dave, that is how I would like it to work, unfortunately I just tried it and it doesn’t work that way. I have my category set up like this:

The Beginners group only has 2 members right now, the Beginner_Support group has 12. The channel after turning on Automatically add users now has 774 members, which is probably about the right amount of active users for everyone…

3 Likes

OK, yep, that doesn’t look like what I’d expect at this point. I’ll take a look tomorrow and let you know what I find.

3 Likes

I do see the issue you’re seeing here. I still need to spend a bit more time tinkering to understand the details of what is and isn’t working properly so we can get something queued up to address this.

5 Likes

OK, here’s what I’m seeing for a user “Bob” who only has “See” access to the category for the channel:

  1. I do see Bob in the members list (unexpected)
  2. Bob does not see the channel in the sidebar initially (ok)
  3. Bob does not see the channel in /chat/channels/browse (ok)
  4. Bob does see the channel if he visits /chat/c/${channelname}/${id} (unexpected)
  5. Bob does see notifications when someone mentions him in the channel (unexpected)
  6. Bob does see the channel in his sidebar once he gets a mention or posts in the channel after visitng it directly (unexpected)

Will add this to our list to fix up.

4 Likes

A post was split to a new topic: Allow visitors and search engines to see chat channels

We merged the following pull requests which should address this issue:

Initially, we had planned to allow read-only users to preview chat channels, but designing the user experience for that turned out to be a bit more complicated than we originally anticipated, so we removed that feature for now in the name of simplicity.

Note: if you had channels set up with auto-join that included groups with read-only permissions, you may need to edit the channel settings once to force the membership list to synchronize with these new rules.

5 Likes

That works brilliantly, thank you Dave!

4 Likes