Commit 7aab79c4 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

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

parent 23c4aea5
......@@ -1108,7 +1108,6 @@ function handleInput() {
value: message,
me: me,
});
addToChatbox(myid, username, message, me);
} catch(e) {
console.error(e);
displayError(e);
......
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment