Fix provider initial status and icq receceiving initial status.

cusax-fix
Damian Minkov 19 years ago
parent df33e0c375
commit a82a9f499b

@ -229,7 +229,7 @@ public void updateStatus(Object presenceStatus)
if(protocolProvider.isRegistered()
&& !presence.getPresenceStatus().equals(status))
{
new PublishPresenceStatusThread(status);
new PublishPresenceStatusThread(status).start();
}
}

@ -1494,9 +1494,9 @@ public void handleYourInfo(MainBosService service,
//that we're very much online so make sure we change accordingly
if (currentIcqStatus == -1 )
currentIcqStatus = ICQ_ONLINE_MASK;
//only notify of an event change if there was really one.
if( oldStatus != userInfo.getIcqStatus() )
if( oldStatus != currentIcqStatus)
fireProviderPresenceStatusChangeEvent(oldStatus,
currentIcqStatus);
}

Loading…
Cancel
Save