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() { ...@@ -1108,7 +1108,6 @@ function handleInput() {
value: message, value: message,
me: me, me: me,
}); });
addToChatbox(myid, username, message, me);
} catch(e) { } catch(e) {
console.error(e); console.error(e);
displayError(e); displayError(e);
......
...@@ -945,7 +945,7 @@ func handleClientMessage(c *webClient, m clientMessage) error { ...@@ -945,7 +945,7 @@ func handleClientMessage(c *webClient, m clientMessage) error {
} }
case "chat": case "chat":
c.group.addToChatHistory(m.Id, m.Username, m.Value, m.Me) 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 { for _, cc := range clients {
cc, ok := cc.(*webClient) cc, ok := cc.(*webClient)
if ok { 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