diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 88c46a17f5..0238cb1762 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -432,5 +432,15 @@ "timerOption_1_week_abbreviated": { "message": "1w", "description": "Label for a selectable option in the message expiration timer menu" + }, + "timerSetTo": { + "message": "Timer set to $time$", + "description": "Displayed in the conversation list when the timer is updated.", + "placeholders": { + "time": { + "content": "$1", + "example": "1w" + } + } } } diff --git a/js/models/messages.js b/js/models/messages.js index fa359f165e..e07d64dd7d 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -81,6 +81,13 @@ if (this.get('attachments').length > 0) { return i18n('mediaMessage'); } + if (this.isExpirationTimerUpdate()) { + return i18n('timerSetTo', + Whisper.ExpirationTimerOptions.getAbbreviated( + this.get('expirationTimerUpdate').expireTimer + ) + ); + } return ''; },