Issue #2798 - Fix issue with color not changing for existing user changing site.

Change-Id: Ida0fac975d477d4d248036d5948c72b44658bd57

Former-commit-id: 8da72343b5 [formerly 3d62505600] [formerly ac65a87fe5] [formerly ac65a87fe5 [formerly 3d10260065]] [formerly 7bdef60a55 [formerly ac65a87fe5 [formerly 3d10260065] [formerly 7bdef60a55 [formerly 8c82d25f6197e838bbd6119003d589bf4fa266ee]]]]
Former-commit-id: 7bdef60a55
Former-commit-id: 39646e99cc9b22639e0870da50df478d68162167 [formerly 28df91565a1ef26047c815bc98382442f1c3836b] [formerly 1a3e88c5da [formerly 5bbe504f82]]
Former-commit-id: 1a3e88c5da
Former-commit-id: e0d65b3d63
This commit is contained in:
Mike Duff 2014-03-18 11:12:01 -05:00
parent da0972ac3c
commit 6c644e5b90

View file

@ -71,6 +71,8 @@ import com.raytheon.uf.viz.core.icon.IconUtil;
* Feb 19, 2014 2751 bclement add change color icon, fix NPE when user cancels change color
* Mar 05, 2014 2798 mpduff Changed how messages are processed for the feed view.
* Mar 06, 2014 2751 bclement moved users table refresh logic to refreshParticipantList()
* Mar 18, 2014 2798 mpduff Fixed issue with user changing site and participant list not
* having the color update to reflect the change.
*
* </pre>
*
@ -407,8 +409,6 @@ public class SessionFeedView extends SessionView {
@Override
protected void participantPresenceUpdated(VenueParticipant participant,
Presence presence) {
usersTable.refresh();
// Verify we have properties
if (!presence.getPropertyNames().contains(
SiteConfigInformation.SITE_NAME)) {
@ -431,11 +431,17 @@ public class SessionFeedView extends SessionView {
message.append(user);
message.append(" ").append(roleName).append(" ")
.append(siteName);
setColorForSite(participant, presence);
sendSystemMessage(message);
processJoinAlert();
}
}
/*
* Presence changed is triggered for participant's site being changed.
* Need to set the color to handle this situation.
*/
setColorForSite(participant, presence);
refreshParticipantList();
}
/**