Use 'You' instead of your own phone number

This commit is contained in:
lilia 2016-10-04 12:22:41 +09:00
parent 1da44c847b
commit 0bba096510
2 changed files with 10 additions and 4 deletions

View file

@ -53,11 +53,13 @@
},
render_attributes: function() {
var seconds = this.model.get('expirationTimerUpdate').expireTimer;
var name = this.conversation.getTitle();
if (this.conversation.id === textsecure.storage.user.getNumber()) {
name = i18n('you');
}
return {
content: i18n('changedTheTimer', [
this.conversation.getTitle(),
Whisper.ExpirationTimerOptions.getName(seconds)
])
content: i18n('changedTheTimer', [name,
Whisper.ExpirationTimerOptions.getName(seconds)])
};
}
});