Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 68f644c

Browse files
authored
Merge pull request #669 from matrix-org/dbkr/read_receipt_title
Make read receipt's titles more explanatory
2 parents 7ae54b3 + c5b752c commit 68f644c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/views/rooms/ReadReceiptMarker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,15 @@ module.exports = React.createClass({
170170

171171
let title;
172172
if (this.props.timestamp) {
173-
let suffix = " (" + this.props.member.userId + ")";
173+
const prefix = "Seen by " + this.props.member.userId + " at ";
174174
let ts = new Date(this.props.timestamp);
175175
if (this.props.showFullTimestamp) {
176176
// "15/12/2016, 7:05:45 PM (@alice:matrix.org)"
177-
title = ts.toLocaleString() + suffix;
177+
title = prefix + ts.toLocaleString();
178178
}
179179
else {
180180
// "7:05:45 PM (@alice:matrix.org)"
181-
title = ts.toLocaleTimeString() + suffix;
181+
title = prefix + ts.toLocaleTimeString();
182182
}
183183
}
184184

0 commit comments

Comments
 (0)