//----------------------------------Presence----------------------------------------------------\\
private void presence(Presence presence)
{
//presence for groupchat eg
PresenceListener presenceListener = backend.getPresenceListener(presence.getFrom());
if(presenceListener != null)
{
presenceListener.presenceChanged(presence);
return;
}
String type = presence.getType();
if(!"error".equals(type))