聊天默认频道ID对我来说似乎不起作用

I’ve tried to set the chat default channel id in the Site Settings on my Discourse instance to various chat IDs, for example, 2, which I believe is the chat ID in the URL scheme below:

https://example.com/chat/channel/2/channel-name

And yet it continues to show me the chat channel with ID 1, which is currently the staff channel.

I know the code first checks whether I have any mentions or unread messages:

…and I don’t, so I’m not sure why it’s not falling back to the default chat_default_channel_id I set in the settings, as I’m confident I set it in the settings and that I have access to the chat channel with ID 2.

Any ideas what might be happening or where I could look for more detail into what’s going wrong?

1 个赞

Same here. It shows the lowest ID that is category dependent and is allowed to a user, but the lowest ID not apply when channel is connected to a topic.

And I’m using the newest version (git pull and rebuilding) In the meaning was the newest about 15 minutes ago when I wrote this. Sorry that I don’t give version but I’m using Hub and jumping around forums is just too hard :wink:

2 个赞

Yeah I can reproduce this - I’ll take a look

2 个赞

@jimkleiber @Jagster I merged a fix for this and the setting should be respected after you deployed.

3 个赞

Thanks! It works.

I have to like your ”I’ll take a look” post because I can’t like the latest twice.

2 个赞

Works for me, too. Thank you!

1 个赞