diff --git a/public/index.html b/public/index.html
index 3bb3639..8e989cd 100644
--- a/public/index.html
+++ b/public/index.html
@@ -532,9 +532,6 @@
-
-
{{ selectedPeer.name }}
-
@@ -644,6 +641,11 @@
+
+
+ {{ formatSecondsAgo(chatItem.lxmf_message.timestamp) }}
+
+
@@ -2543,18 +2545,34 @@
const parsedSeconds = this.parseSeconds(seconds);
if(parsedSeconds.days > 0){
- return parsedSeconds.days + " days ago";
+ if(parsedSeconds.days === 1){
+ return "1 day ago";
+ } else {
+ return parsedSeconds.days + " days ago";
+ }
}
if(parsedSeconds.hours > 0){
- return parsedSeconds.hours + " hours ago";
+ if(parsedSeconds.hours === 1){
+ return "1 hour ago";
+ } else {
+ return parsedSeconds.hours + " hours ago";
+ }
}
if(parsedSeconds.minutes > 0){
- return parsedSeconds.minutes + " minutes ago";
+ if(parsedSeconds.minutes === 1){
+ return "a minute ago";
+ } else {
+ return parsedSeconds.minutes + " minutes ago";
+ }
}
- return parsedSeconds.seconds + " seconds ago";
+ if(parsedSeconds.seconds <= 1){
+ return "a second ago";
+ } else {
+ return parsedSeconds.seconds + " seconds ago";
+ }
},
formatMinutesSeconds: function(seconds) {