# Open chat by default or remember if it was open

**URL:** https://meta.discourse.org/t/open-chat-by-default-or-remember-if-it-was-open/249146
**Category:** Feature
**Tags:** chat
**Created:** [December 16, 2022, 3:32pm UTC](https://meta.discourse.org/t/open-chat-by-default-or-remember-if-it-was-open/249146 "2022-12-16T15:32:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [December 16, 2022, 3:32pm UTC](https://meta.discourse.org/t/open-chat-by-default-or-remember-if-it-was-open/249146/1 "2022-12-16T15:32:59Z")

</div>

Let’s consider whether it makes sense to have chat open by default in some way.

_via @DiscourseMetrics in #chat-feedback :_

> Would it be possible to have an option to open the chat to the last viewed channel/PM and have it open automatically if it was open the last time the user visited?
> 
> I would prefer if the last state the user was in (channel and open/minimised) was stored and that it would just restore that by default when loading the page.

> **full transcript**
>
> Originally sent in [chat feedback](https://meta.discourse.org/chat/c/-/129)
> 
> ![](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discoursemetrics/48/55756_2.png)
> 
> DiscourseMetrics
> 
> My users _live_ in the chat. But if I use this as is they will all have to open the chat and select a channel to view new messages. Would it be possible to have an option to open the chat to the last viewed channel/PM and have it open automatically if it was open the last time the user visited? Doing this makes most sense on larger screens, of course.
> 
> ![](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/48/103861_2.png)
> 
> mcwumbly
> 
> note: I understand this may not be completely what you're looking for, but clicking the chat icon in the header does open to the last viewed channel now (if they are living in the same browser session too)
> 
> what chat app are your users currently living in?
> 
> ![](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discoursemetrics/48/55756_2.png)
> 
> DiscourseMetrics
> 
> A custom RocketChat on top of Discourse :)
> 
> It looks like this, quite similar to the new chat here:
> 
> ![image.png](https://global.discourse-cdn.com/meta/original/4X/6/c/6/6c65357c9ef4eafff8d2d8910cb2ca7f1e51a007.png)
> 
> ![](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/48/103861_2.png)
> 
> mcwumbly
> 
> > Would it be possible to have an option to open the chat to the last viewed channel/PM and have it open automatically if it was open the last time the user visited?
> 
> @DiscourseMetrics I'm interested in what the current behavior is for your chat integration and whether that's exactly what you'd like (or if you'd ideally prefer something a bit different).
> 
> Does that chat window open up by default in the bottom right? Is it expanded like that or minimized (or does that depend on the state the user last had it in?)
> 
> ![](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discoursemetrics/48/55756_2.png)
> 
> DiscourseMetrics
> 
> At the moment it opens to a default channel as shown in the screenshot. I've given users an option (that they enable by joining a group - hacky but it works) that will not open the chat by default, so it is just shown minimised/as a bar. I would prefer if the last state the user was in (channel and open/minimised) was stored and that it would just restore that by default when loading the page.
> 
> ![](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/48/103861_2.png)
> 
> mcwumbly
> 
> Cool, thank you. I'm going to capture this in a topic. I think it's something worth considering, but I'd like to solicit some more input about the idea first.

I can see something like this being helpful, but it could be distracting to do this unconditionally, so we need to consider what the logic is here.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [December 17, 2022, 10:04am UTC](https://meta.discourse.org/t/open-chat-by-default-or-remember-if-it-was-open/249146/2 "2022-12-17T10:04:58Z")

</div>

Most of my ”chat active” users normally read forum posts first and after that they open chat. So if chat would open automatically if lefted open it would act differently every second time. And that is not nice.

This is more or less another loose-loose situation, I reckon.
