Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit b6d7ee3

Browse files
authored
Merge pull request #1290 from ssbc/low-specificity-activity
Reduce timestamp specificity on profile
2 parents 97ebcff + 122cbb8 commit b6d7ee3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/depject/message/html/timestamp.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ exports.create = function (api) {
1919
title: moment(api.message.sync.timestamp(msg)).format('LLLL zz')
2020
}, moment(api.message.sync.timestamp(msg)).fromNow())
2121
} else {
22-
return moment(api.message.sync.timestamp(msg)).fromNow()
22+
return moment(api.message.sync.timestamp(msg)).calendar(null, {
23+
sameDay: '[Today]',
24+
lastDay: '[Yesterday]',
25+
lastWeek: '[Last] dddd'
26+
})
2327
}
2428
}
2529
}

0 commit comments

Comments
 (0)