Archived
1
0
Disbranĉigi 0

Allow messages sans sender

This commit is contained in:
Jaidyn Ann 2023-06-06 12:08:24 -05:00
parent 9ed56247e3
commit 8a94a0fa82

View File

@ -65,8 +65,9 @@
[message-text (if last-message [message-text (if last-message
(car last-message) "")] (car last-message) "")]
[message-sender (if last-message [message-sender (if last-message
(alist-ref 'user.chat.sender (or (alist-ref 'user.chat.sender
(cdr last-message)) (cdr last-message))
"")
"")] "")]
[message-time [message-time
(if last-message (if last-message
@ -176,7 +177,7 @@
"templates/room-messages-item.html" "templates/room-messages-item.html"
`(("MESSAGE_SENDER" `(("MESSAGE_SENDER"
. ,(html-encode-string . ,(html-encode-string
(alist-ref 'user.chat.sender (cdr message)))) (or (alist-ref 'user.chat.sender (cdr message)) "")))
("MESSAGE_DATE" ("MESSAGE_DATE"
. ,(html-encode-string . ,(html-encode-string
(date->string (date->string