Make read receipt's titles more explanatory
Throwing this one in a suggestion while I'm in the area: I think this would help people understand what the read receipt avatars are.
This commit is contained in:
parent
f8d7902d2e
commit
c5b752cac1
1 changed files with 3 additions and 3 deletions
|
@ -170,15 +170,15 @@ module.exports = React.createClass({
|
|||
|
||||
let title;
|
||||
if (this.props.timestamp) {
|
||||
let suffix = " (" + this.props.member.userId + ")";
|
||||
const prefix = "Seen by " + this.props.member.userId + " at ";
|
||||
let ts = new Date(this.props.timestamp);
|
||||
if (this.props.showFullTimestamp) {
|
||||
// "15/12/2016, 7:05:45 PM (@alice:matrix.org)"
|
||||
title = ts.toLocaleString() + suffix;
|
||||
title = prefix + ts.toLocaleString();
|
||||
}
|
||||
else {
|
||||
// "7:05:45 PM (@alice:matrix.org)"
|
||||
title = ts.toLocaleTimeString() + suffix;
|
||||
title = prefix + ts.toLocaleTimeString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue