Chat window opens on error <message> stanza with no content
When a contact is using a mobile client and has connection problems, the client connect and disconnect continuosly, and sometimes it appears a conversation window with messages that say "recipient-unavailable" (not a contact message itself, but a "status change"-like message).
I think that happens because the server sends an error <message> besides the corresponding <presence> error, but I think Gajim should manage these messages other way. The conversations opens with that kind of messages although the conversations was not open.
One time I opened the XML console to log this problem, and this is what I got (JIDs are deleted due to privacy reasons). Although the log is from last month, the problem persists.
I only can test it on Gajim 0.16 because nowadays Ubuntu doesn't have newer versions on repositories, so sorry if it has been reported or solved yet.
<!-- In mié 08 jul 2015 18:16:39 CEST --> <presence from='[CONTACT]' to='[ME]' type='error' id='320'> <error type='cancel'> <recipient-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> </error> </presence>
<!-- In mié 08 jul 2015 18:16:39 CEST --> <message from=[CONTACT]' to='[ME]'' type='error'> <error type='cancel'> <recipient-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> </error> </message>
Steps to reproduce
OS version: Kubuntu 14.04
GTK version: 2.24
PyGTK version: 2.24