Fix chathistory and display of anonymous users.

Chathistory messages were formatted incorrectly.
We were also not formatting correctly messages from
anonymous users.
This commit is contained in:
Juliusz Chroboczek
2022-09-06 19:03:50 +02:00
parent 3a2efbcc7e
commit 0fe3ed2e15
2 changed files with 14 additions and 17 deletions
+1 -1
View File
@@ -1194,7 +1194,7 @@ func handleAction(c *webClient, a interface{}) error {
for _, m := range h {
err := c.write(clientMessage{
Type: "chathistory",
Id: m.Id,
Source: m.Id,
Username: m.User,
Time: m.Time,
Value: m.Value,