Refer the attachment.
I assume that the interplay with ejabberd is not correctly configured. If thats the case I would opt for either have a crossed-out chat icon if no chat server is configured or get rid of the icon alltogether in that case.
@fwolfst ejabberd may not be always the reason. We strongly believe that it is something to do with the client library we have used, as we have configured live xmpp server that we connect internally.