# Show message retention period in the UI?

**URL:** https://meta.discourse.org/t/show-message-retention-period-in-the-ui/238979
**Category:** Feature
**Tags:** chat
**Created:** [September 14, 2022, 11:02am UTC](https://meta.discourse.org/t/show-message-retention-period-in-the-ui/238979 "2022-09-14T11:02:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [September 14, 2022, 11:02am UTC](https://meta.discourse.org/t/show-message-retention-period-in-the-ui/238979/1 "2022-09-14T11:02:53Z")

</div>

> **After this #chat conversation, I think we can have better copy here:**
>
> Originally sent in [chat feedback](https://meta.discourse.org/chat/c/-/129)
> 
> ![](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/agungor/48/260344_2.png)
> 
> agungor
> 
> When retention period is limited, is there a disclaimer on the channel that clearly states that? I was thinking of something along the lines of what we have at the bottom of topics that will automatically close.
> 
> If I am writing in a channel and my messages will evaporate in 30 days, I would like to know 😃
> 
> ![](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/48/103861_2.png)
> 
> mcwumbly
> 
> I know it's surfaced somewhere, but I think it needs to be surfaced more clearly. We don't have [per channel retention settings](https://meta.discourse.org/t/retention-settings-per-chat-channel/226704) yet; it's all site wide. I think per channel makes sense, and when we do that surfacing this more clearly will be even more important. Until then, while not ideal, the site wide setting is probably easier to communicate via other means.

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/2/6/7265bda64b22c2f4e09f8efeaee59c066686be9f.png)

**Proposed change**

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/8/0/880751e8cb1fc49a725fdf49d6c07d826d2f7610.png)

- How it would work:

- We could add a tooltip ℹ to the end of the phrase so users are educated about retention periods and to use topics or “Move to Topic” for important discussions

- Besides the above change, we also need to surface this somewhere that doesn’t require scrolling to the first available message. The “About” or “Settings” tabs on the chat channel info page seem like potential homes.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [September 14, 2022, 1:44pm UTC](https://meta.discourse.org/t/show-message-retention-period-in-the-ui/238979/3 "2022-09-14T13:44:04Z")

</div>

The new copy just creates more confusion for me.

‘Showing all messages in the last 30 days’ implies that older messages _exist_, but some form of filter is limiting what’s shown.

If we’re to eliminate the ambiguity we only really need to let the user know that messages over X expire/are deleted, right?

---

<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: [September 16, 2022, 2:12am UTC](https://meta.discourse.org/t/show-message-retention-period-in-the-ui/238979/4 "2022-09-16T02:12:01Z")

</div>

I learned recently that we already have something for this.

Here’s part of a screenshot:

 ![Screen Shot 2022-09-15 at 10.06.05 PM](https://global.discourse-cdn.com/meta/original/4X/5/0/2/502434b943045cc07fd24807fdaac745c7afecd4.png)

Here’s the spec:

> <https://github.com/discourse/discourse-chat/blob/7b44725ebbc01ac17aa7bc7a62e9313a6937b2e0/test/javascripts/components/chat-retention-reminder-test.js#L16-L26>

What I don’t fully understand about the logic at this point is under what conditions `needs_channel_retention_reminder` is `true`.

My quick read of the code makes me think it defaults to `true` and gets set to `false` once the user dismisses it once, and is therefore never shown again after that.

Maybe we could set it back to true under some conditions?

Or maybe we run with the design here, but just use the existing language for the text at the beginning of the message stream too?
