Merge pull request #669 from matrix-org/dbkr/read_receipt_title
Make read receipt's titles more explanatorypull/21833/head
commit
68f644c824
|
@ -170,15 +170,15 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
let title;
|
let title;
|
||||||
if (this.props.timestamp) {
|
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);
|
let ts = new Date(this.props.timestamp);
|
||||||
if (this.props.showFullTimestamp) {
|
if (this.props.showFullTimestamp) {
|
||||||
// "15/12/2016, 7:05:45 PM (@alice:matrix.org)"
|
// "15/12/2016, 7:05:45 PM (@alice:matrix.org)"
|
||||||
title = ts.toLocaleString() + suffix;
|
title = prefix + ts.toLocaleString();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// "7:05:45 PM (@alice:matrix.org)"
|
// "7:05:45 PM (@alice:matrix.org)"
|
||||||
title = ts.toLocaleTimeString() + suffix;
|
title = prefix + ts.toLocaleTimeString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue