# Volledig scherm chat als standaard voor samenwerkingsopstelling

**URL:** https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849
**Category:** Feature
**Tags:** chat
**Created:** [12 juni 2025 om 09:19 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849 "2025-06-12T09:19:24Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [12 juni 2025 om 09:19 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/1 "2025-06-12T09:19:24Z")

</div>

I’m working on a collaboration setup that positions Chat as the primary space for member communication, similar to other collaboration platforms. The goal is for members to land directly in their channels or latest threads, making chat the central hub when they visit the site.

So rather than landing on a view like this:

 ![The image displays a screenshot of a Slack interface with various channels and topics, such as 'Welcome to Vela 203', 'MANUEL KOSTK', and 'DEV: Declare colors for all tag styles', with some discussion posts visible in the 'General' channel. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/f/e/1fe90fb0bd0954ca6752e39073d93c6d2197bafe.png)

I’d land right on chat full-screen:

 ![The image shows a chat interface from the application Vela, detailing a thread with messages about logo exploration, a final build notification, excitement over pushing content, and a request for a sanity check, shared on June 2023. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/6/b/2/6b237f9febfb350dfcd22adef90824f4cf0ad7fe.png)

It seems there’s currently no way to have chat open in full-screen mode by default. Could this be added as an option?

It could be exposed as a site setting, a theme modifier, or a value transformer. A way to give theme authors or site admins the flexibility to integrate Chat as the default interaction view.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [12 juni 2025 om 09:34 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/2 "2025-06-12T09:34:15Z")

</div>

You can write an initializer like this:

```javascript
export default {
  name: "default-full-page-chat",

  initialize() {
    if (!window.localStorage.getItem("discourse_chat_preferred_mode")) {
      window.localStorage.setItem("discourse_chat_preferred_mode", '\"FULL_PAGE_CHAT\"');
    }
  },
};

```

That should do what you want I think.

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [12 juni 2025 om 09:39 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/3 "2025-06-12T09:39:36Z")

</div>

Indeed, works like a charm! Thank you 😊

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [13 juni 2025 om 00:35 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/4 "2025-06-13T00:35:47Z")

</div>

I know it’s already solved, but instead of accessing localstorage directly like this, if you are able to access the plugin services from a theme, you can do:

```javascript
export default {
  name: "default-full-page-chat",

  initialize(container) {
    const chat = container.lookup("service:chat");
    if (!chat.userCanChat) {
      return;
    }

    const chatStateManager = container.lookup("service:chat-state-manager");
    chatStateManager.prefersFullPage();
  },
};

```

Which calls this:

> <https://github.com/discourse/discourse/blob/49ab9fe13bda26b747c1f55ffc175830ecaf5831/plugins/chat/assets/javascripts/discourse/services/chat-state-manager.js#L48-L54>

This would be more reliable long term, if it works (I haven’t tested this 😅 ).

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [13 juni 2025 om 09:13 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/5 "2025-06-13T09:13:35Z")

</div>

Yes using service is nicer, but I don’t think we have any way to check if any preference has been set through the service atm. Do we?

And if understood the request here, we don’t want to override any decision of the user, we just want to promote full screen on first load, if we just want to force it yes your solution will work.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [16 juni 2025 om 01:24 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/6 "2025-06-16T01:24:53Z")

</div>

> [@j.jaffeux](#):
>
> I don’t think we have any way to check if any preference has been set through the service atm. Do we?

We have these, but `isDrawerPreferred` is always `true` if no preference has been set:

> <https://github.com/discourse/discourse/blob/932ccce9afbf98578e92c6a6b2c0513ea596d89d/plugins/chat/assets/javascripts/discourse/services/chat-state-manager.js#L140-L154>

I think it would be nice if we had a `hasNoPreferredMode` getter for this situation that just checks the store, here is a PR:

[https://github.com/discourse/discourse/pull/33213](https://github.com/discourse/discourse/pull/33213)

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [17 juni 2025 om 03:23 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/7 "2025-06-17T03:23:15Z")

</div>

Okay @manuel this PR is merged now, so you can use the plugin API I described in [Full-screen chat as default for collaboration setup - #4 by martin](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/4) and `hasNoPreferredMode` from the chat state manager.

---

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [17 juni 2025 om 07:16 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/8 "2025-06-17T07:16:45Z")

</div>

Hallo @nolo, even een korte opmerking:

In de volledig scherm chatmodus moet je doorgaans het volledig scherm verlaten (of de chat-interface anderszins wijzigen) voordat je een duidelijke optie ziet om terug te keren naar de lijst met chats of over te schakelen naar een gesprek met een ander lid.

Het is misschien de moeite waard om te overwegen of er een manier is om die navigatie-ervaring binnen het volledig scherm zelf te verbeteren.

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [17 juni 2025 om 09:03 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/9 "2025-06-17T09:03:42Z")

</div>

Thank you @martin, this works great!

Testing the UX in my current case, it actually feels more intuitive to have Chat full-screen all the time. I want Chat to be the primary mode of communication, and allowing it to be minimized users can end up on a screen they didn’t intentionally choose before, which can be confusing.

I’m thinking of just using CSS to hide the minimize option, unless there’s a more direct way to disable it?

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/d/1/3d123c72d492cebd7d2f9aa9d47f6e98c3b5c7a0.png)

* * *

@jahan_gagan I’m not quite sure what you were referring to, is this on sites that use a hamburger menu for navigation? In my setup, all navigation options are available via the sidebar.

One issue I’ve run into though: on tablets the keyboard automatically pops up when navigating to a chat channel and it causes a very jumpy layout. I haven’t looked into addressing that, just noting it as a complication.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [18 juni 2025 om 05:05 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/10 "2025-06-18T05:05:04Z")

</div>

Yes hiding the collapse button would work, but I just checked and there is one more way users may switch back to drawer mode. If you press the `-` key when you are in the forum, we open the chat drawer:

> <https://github.com/discourse/discourse/blob/main/plugins/chat/assets/javascripts/discourse/initializers/chat-keyboard-shortcuts.js#L250-L259>

And in this function we call `chatStateManager.prefersDrawer()`, which sets the local storage preference. We have had some more discussions lately internally about allowing a chat-only mode of Discourse, including an experiment in this direction, as well as ideas around drawer mode.

Not sure when the time will come for us to focus on this more, @mcwumbly may have some input here or @lindsey .

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [18 juni 2025 om 10:11 UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849/11 "2025-06-18T10:11:29Z")

</div>

Bedankt, dat is erg nuttig om te weten! Ik weet nog niet wat ik nu ga doen, maar ja, het zou geweldig zijn als er in de toekomst een optie komt om dit volledig in lijn te brengen met de gebruikelijke Discourse-instellingen.
