Use 'You' instead of your own phone number
This commit is contained in:
parent
1da44c847b
commit
0bba096510
2 changed files with 10 additions and 4 deletions
|
@ -446,5 +446,9 @@
|
||||||
"example": "1w"
|
"example": "1w"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"you": {
|
||||||
|
"message": "You",
|
||||||
|
"description": "A gender-neutral second-person prounoun used as a subject, as in, 'You set the timer to 5 seconds'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,11 +53,13 @@
|
||||||
},
|
},
|
||||||
render_attributes: function() {
|
render_attributes: function() {
|
||||||
var seconds = this.model.get('expirationTimerUpdate').expireTimer;
|
var seconds = this.model.get('expirationTimerUpdate').expireTimer;
|
||||||
|
var name = this.conversation.getTitle();
|
||||||
|
if (this.conversation.id === textsecure.storage.user.getNumber()) {
|
||||||
|
name = i18n('you');
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
content: i18n('changedTheTimer', [
|
content: i18n('changedTheTimer', [name,
|
||||||
this.conversation.getTitle(),
|
Whisper.ExpirationTimerOptions.getName(seconds)])
|
||||||
Whisper.ExpirationTimerOptions.getName(seconds)
|
|
||||||
])
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue