candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

Message stanzas with errors cause malfunction #473

Open guusdk opened 8 years ago

guusdk commented 8 years ago

When a message stanza that is an error is received by Candy, it stops working completely (but does not give any visual clue that it stopped).

I have outlined the problem here: https://groups.google.com/forum/#!topic/candy-chat/plwovsjyx38

The problem appears to be caused by a couple of complementing factors, which revolve around this bit in the code: https://github.com/candy-chat/candy/blob/master/src/core/event.js#L776-L782