コード例 #1
0
 /**
  * Update availability of friend associated with this conversation.
  *
  * @param update type of update.
  */
 public void friendAvailableUpdate(FriendEvent.Type update) {
   switch (update) {
     case ADDED:
       currentChatState = ChatState.active;
       displayMessages(false);
       if ((nosaveLink != null) && hasFeature(NoSaveFeature.ID)) {
         nosaveLink.setVisible(true);
       }
       break;
     case REMOVED:
       displayMessages(true);
       if (nosaveLink != null) {
         nosaveLink.setVisible(false);
       }
       break;
   }
 }