# Auto close livechat room after user gone

**URL:** <https://forums.rocket.chat/t/auto-close-livechat-room-after-user-gone/11659>\
**Category:** Community Support\
**Created:** [July 15, 2021, 10:11pm UTC](https://forums.rocket.chat/t/auto-close-livechat-room-after-user-gone/11659 "2021-07-15T22:11:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristobal.maldonado](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/cristobal.maldonado/32/2974_2.png) [@cristobal.maldonado](https://forums.rocket.chat/u/cristobal.maldonado)\
**Post date:** [July 15, 2021, 10:11pm UTC](https://forums.rocket.chat/t/auto-close-livechat-room-after-user-gone/11659/1 "2021-07-15T22:11:24Z")

</div>

### Description

Is there a way to automatically close livechat rooms after X amount of time or when the user leaves the room?

### Server Setup Information

- Version of Rocket.Chat Server: 3.15.0

Thanks.

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [July 16, 2021, 9:19am UTC](https://forums.rocket.chat/t/auto-close-livechat-room-after-user-gone/11659/2 "2021-07-16T09:19:34Z")

</div>

Hi.

> [@cristobal.maldonado](#):
>
> Is there a way to automatically close livechat rooms after X amount of time or when the user leaves the room?

I’m not sure but I’ll ask.

> [@cristobal.maldonado](#):
>
> Version of Rocket.Chat Server: 3.15.0

Upgrade, now. Please see:

> **[Releases · RocketChat/Rocket.Chat](https://github.com/RocketChat/Rocket.Chat/releases)**
>
> The communications platform that puts data protection first. - RocketChat/Rocket.Chat

---

<div class="post-metadata">

**Author:** ![cristobal.maldonado](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/cristobal.maldonado/32/2974_2.png) [@cristobal.maldonado](https://forums.rocket.chat/u/cristobal.maldonado)\
**Post date:** [July 17, 2021, 11:31am UTC](https://forums.rocket.chat/t/auto-close-livechat-room-after-user-gone/11659/3 "2021-07-17T11:31:54Z")

</div>

> [@john.crisp](#):
>
> I’m not sure but I’ll ask.

Thanks.

> [@john.crisp](#):
>
> Upgrade, now. Please see:
> 
> [Releases · RocketChat/Rocket.Chat · GitHub](https://github.com/RocketChat/Rocket.Chat/releases)

Thats whats we are doing now 🙂

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [July 19, 2021, 9:39am UTC](https://forums.rocket.chat/t/auto-close-livechat-room-after-user-gone/11659/4 "2021-07-19T09:39:06Z")

</div>

Auto closing a room is probably a feature request but ti probably also depends on deleting the user session on window close as well. I know there was an issue raised about that but can’t see it at the minute.

Have a look in github and see what you can find.

At best this is a feature-request as Rocket isn’t actually broken - just not doing what you want it too.
