mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Have chat messages go through the server even when sent to oneself.
This commit is contained in:
parent
23c4aea58f
commit
7aab79c4c6
2 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||||
}
|
}
|
||||||
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 {
|
||||||
|
|
Loading…
Reference in a new issue