Populate conversation snippet for timer updates

This commit is contained in:
lilia 2016-09-29 15:23:32 -07:00
parent 600ac94257
commit 8d16bfb65e
2 changed files with 17 additions and 0 deletions

View file

@ -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"
}
}
}
}

View file

@ -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 '';
},