1
Fork 0

Have chat messages go through the server even when sent to oneself.

This commit is contained in:
Juliusz Chroboczek 2020-08-07 11:33:59 +02:00
parent 23c4aea58f
commit 7aab79c4c6
2 changed files with 1 additions and 2 deletions

View File

@ -1108,7 +1108,6 @@ function handleInput() {
value: message,
me: me,
});
addToChatbox(myid, username, message, me);
} catch(e) {
console.error(e);
displayError(e);

View File

@ -945,7 +945,7 @@ func handleClientMessage(c *webClient, m clientMessage) error {
}
case "chat":
c.group.addToChatHistory(m.Id, m.Username, m.Value, m.Me)
clients := c.group.getClients(c)
clients := c.group.getClients(nil)
for _, cc := range clients {
cc, ok := cc.(*webClient)
if ok {