mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
DRY
This commit is contained in:
@@ -58,18 +58,14 @@
|
||||
var seconds = this.model.get('expirationTimerUpdate').expireTimer;
|
||||
var timerMessage;
|
||||
if (this.conversation.id === textsecure.storage.user.getNumber()) {
|
||||
timerMessage = {
|
||||
content: i18n('youChangedTheTimer',
|
||||
Whisper.ExpirationTimerOptions.getName(seconds))
|
||||
};
|
||||
timerMessage = i18n('youChangedTheTimer',
|
||||
Whisper.ExpirationTimerOptions.getName(seconds));
|
||||
} else {
|
||||
timerMessage = {
|
||||
content: i18n('theyChangedTheTimer', [
|
||||
this.conversation.getTitle(),
|
||||
Whisper.ExpirationTimerOptions.getName(seconds)])
|
||||
};
|
||||
timerMessage = i18n('theyChangedTheTimer', [
|
||||
this.conversation.getTitle(),
|
||||
Whisper.ExpirationTimerOptions.getName(seconds)]);
|
||||
}
|
||||
return timerMessage;
|
||||
return { content: timerMessage };
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user