Allow messages sans sender
This commit is contained in:
parent
9ed56247e3
commit
8a94a0fa82
|
@ -65,8 +65,9 @@
|
|||
[message-text (if last-message
|
||||
(car last-message) "")]
|
||||
[message-sender (if last-message
|
||||
(alist-ref 'user.chat.sender
|
||||
(or (alist-ref 'user.chat.sender
|
||||
(cdr last-message))
|
||||
"")
|
||||
"")]
|
||||
[message-time
|
||||
(if last-message
|
||||
|
@ -176,7 +177,7 @@
|
|||
"templates/room-messages-item.html"
|
||||
`(("MESSAGE_SENDER"
|
||||
. ,(html-encode-string
|
||||
(alist-ref 'user.chat.sender (cdr message))))
|
||||
(or (alist-ref 'user.chat.sender (cdr message)) "")))
|
||||
("MESSAGE_DATE"
|
||||
. ,(html-encode-string
|
||||
(date->string
|
||||
|
|
Reference in New Issue