# Full-screen chat as default for collaboration setup

**URL:** https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849
**Category:** Feature
**Tags:** chat
**Created:** [June 12, 2025, 9:19am UTC](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849 "2025-06-12T09:19:24Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [June 13, 2025, 12:35am 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 😅 ).

---

_[View the full topic](https://meta.discourse.org/t/full-screen-chat-as-default-for-collaboration-setup/369849)._
