Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Mendoza committed Mar 30, 2021
1 parent 1fc5967 commit 7b798de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.8.1

### Enhancement

- Specified a timer when creating a Twilio Conversation. This will automatically close the conversation after 24 hours, which is equal to the maximum duration of a video room. This helps to clean up old conversations since there is a limit that a single participant can not be added to more than 1,000 open conversations.

## 0.8.0

### New Features
Expand Down
2 changes: 1 addition & 1 deletion src/serverless/functions/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports.handler = async (context, event, callback) => {
// Here we add a timer to close the conversation after the maximum length of a room (24 hours).
// This helps to clean up old conversations since there is a limit that a single participant
// can not be added to more than 1,000 open conversations.
await conversationsClient.conversations.create({ uniqueName: room.sid, 'timers.close': 'P1D' });
await conversationsClient.conversations.create({ uniqueName: room.sid, 'timers.closed': 'P1D' });
} catch (e) {
response.setStatusCode(500);
response.setBody({
Expand Down

0 comments on commit 7b798de

Please sign in to comment.