refactor ContactItem

This commit is contained in:
Sergey Ponomarev
2026-07-25 22:05:08 +03:00
parent 687a237260
commit be5212b595
10 changed files with 39 additions and 58 deletions

View File

@ -313,7 +313,7 @@ public final class OnlineAgents extends JPanel {
if (presence.getType() == Presence.Type.unavailable) {
contactGroup.removeContactItem(item);
}
else if (presence.getType() == Presence.Type.available) {
else if (presence.isAvailable()) {
Icon icon = PresenceManager.getIconFromPresence(presence);
item.setIcon(icon);
}