Skip to content

Commit

Permalink
Fixed lastDate message
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Oct 12, 2024
1 parent 39d4a39 commit b29c1f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions themes/chatview/psi/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function psiThemeAdapter(chat) {
var m = splitted[i].match(/%([\w]+)(?:\{([^\{]+)\})?%/);
if (m) {
switch (m[1]) {
case "date":
case "time": this.parts.push(new shared.TemplateTimeVar(m[1], m[2])); break;
case "template": this.parts.push(new shared.TemplateTemplateVar(m[2])); break;
case "escapeURI": this.parts.push(new shared.TemplateEscapeUriVar(m[2])); break;
Expand Down
2 changes: 1 addition & 1 deletion themes/chatview/psi/bubble/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
messageGroupping: messageGroupping,
sys: `<div class="sysmsg" title="%time{LL}%">%message%</div>`,
sysMessageUT: `<div class="sysmsg" title="%time{LL}%">%message%<div class="usertext">%usertext%</div></div>`,
lastMsgDate: `<div class="sysmsg">%time{LL}%</div>`,
lastMsgDate: `<div class="sysmsg">%date{LL}%</div>`,
subject: shared.isMuc?
"<div class='sysmsg' title='%time{LL}%'>%message%<div class='usertext'><b>%usertext%</b></div></div>"
: "<div class='sysmsg'><b>%usertext%</b></div>",
Expand Down
4 changes: 0 additions & 4 deletions themes/chatview/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,10 +981,6 @@ ${info}
}
}

if (data.time) {
data.time = new Date(data.time);
}

if (data.type == "message") {
if (data.mtype == "join") {
usersMap[data.sender] = {avatar:data.avatar, nickcolor:data.nickcolor, msgs:{}};
Expand Down

0 comments on commit b29c1f4

Please sign in to comment.