Populate conversation snippet for timer updates
This commit is contained in:
parent
600ac94257
commit
8d16bfb65e
2 changed files with 17 additions and 0 deletions
|
@ -432,5 +432,15 @@
|
||||||
"timerOption_1_week_abbreviated": {
|
"timerOption_1_week_abbreviated": {
|
||||||
"message": "1w",
|
"message": "1w",
|
||||||
"description": "Label for a selectable option in the message expiration timer menu"
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,13 @@
|
||||||
if (this.get('attachments').length > 0) {
|
if (this.get('attachments').length > 0) {
|
||||||
return i18n('mediaMessage');
|
return i18n('mediaMessage');
|
||||||
}
|
}
|
||||||
|
if (this.isExpirationTimerUpdate()) {
|
||||||
|
return i18n('timerSetTo',
|
||||||
|
Whisper.ExpirationTimerOptions.getAbbreviated(
|
||||||
|
this.get('expirationTimerUpdate').expireTimer
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue