Gajim ignores <presence type="invisible"/>
When Gajim connects to gateway, that by default connects with invisible-presence we can observe the following flow:
Gateway indicates that it isn't logged yet:
\<presence xmlns='jabber:client' from='gg.chrome.pl' to='user@chrome.pl/Gajim' type='unavailable'>
\<status>Not logged in\</status>
\</presence>
Then gateway indicates that it connected (using invisible presence):
\<presence xmlns='jabber:client' from='gg.chrome.pl/registered' to='user@chrome.pl/Gajim' type='invisible'/>
Gajim could interpret it two ways:
- Ignore the non-XMPP invisible presence type and interpret the presence packet as available presence
- Interpret the invisible presence type and show invisible icon contact (and treat it as connected)
Instead Gajim just ignores the packet and treats gateway contact as unavailable.