mirror of
https://github.com/discourse/discourse.git
synced 2025-03-15 02:45:24 +08:00
UX: Add sidebar DM list back when public channels are disabled (#28301)
This commit is contained in:
parent
df5561d780
commit
206bbb4255
@ -17,13 +17,7 @@ export default class ChatController extends Controller {
|
||||
if (this.shouldUseCoreSidebar) {
|
||||
return false;
|
||||
}
|
||||
if (
|
||||
this.publicMessageChannelsEmpty &&
|
||||
this.enabledRouteCount === 1 &&
|
||||
this.chat.userCanAccessDirectMessages
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user