Fossil SCM

Only apply sender-local time if it's in the message (older messages do not have it).

stephan 2020-12-26 20:26 trunk
Commit f2a58f10bf612b53a70132470405959bcc3b63b05920bcc88cf08667ab4b5cb5
1 file changed +1 -1
+1 -1
--- src/chat.js
+++ src/chat.js
@@ -586,11 +586,11 @@
586586
// Date works, render informative timestamps
587587
const xfrom = eMsg.dataset.xfrom;
588588
D.append(this.e,
589589
D.append(D.span(), localTimeString(d)," ",Chat.me," time"),
590590
D.append(D.span(), iso8601ish(d)));
591
- if(xfrom!==Chat.me){
591
+ if(eMsg.dataset.lmtime && xfrom!==Chat.me){
592592
D.append(this.e,
593593
D.append(D.span(), localTime8601(
594594
new Date(eMsg.dataset.lmtime)
595595
)," ",xfrom," time"));
596596
}
597597
--- src/chat.js
+++ src/chat.js
@@ -586,11 +586,11 @@
586 // Date works, render informative timestamps
587 const xfrom = eMsg.dataset.xfrom;
588 D.append(this.e,
589 D.append(D.span(), localTimeString(d)," ",Chat.me," time"),
590 D.append(D.span(), iso8601ish(d)));
591 if(xfrom!==Chat.me){
592 D.append(this.e,
593 D.append(D.span(), localTime8601(
594 new Date(eMsg.dataset.lmtime)
595 )," ",xfrom," time"));
596 }
597
--- src/chat.js
+++ src/chat.js
@@ -586,11 +586,11 @@
586 // Date works, render informative timestamps
587 const xfrom = eMsg.dataset.xfrom;
588 D.append(this.e,
589 D.append(D.span(), localTimeString(d)," ",Chat.me," time"),
590 D.append(D.span(), iso8601ish(d)));
591 if(eMsg.dataset.lmtime && xfrom!==Chat.me){
592 D.append(this.e,
593 D.append(D.span(), localTime8601(
594 new Date(eMsg.dataset.lmtime)
595 )," ",xfrom," time"));
596 }
597

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button