private void shareGroup()
  {
    if (!CloudCenter.getInstance().isLogin())
    {
      CloudCenter.OnLoginEventListerner local6 = new CloudCenter.OnLoginEventListerner()
      {
        public void onLoginFailed(int paramAnonymousInt)
        {
        }

        public void onLoginSuccessed(int paramAnonymousInt)
        {
          ImChatMainView.this.actualShareGroup();
        }
      };
      EventDispacthManager.getInstance().dispatchAction("showLogin", local6);
      return;
    }
    actualShareGroup();
  }
  private void flowerToUser(final UserInfo paramUserInfo)
  {
    if (!CloudCenter.getInstance().isLogin())
    {
      CloudCenter.OnLoginEventListerner local8 = new CloudCenter.OnLoginEventListerner()
      {
        public void onLoginFailed(int paramAnonymousInt)
        {
        }

        public void onLoginSuccessed(int paramAnonymousInt)
        {
          ImChatMainView.this.actualFlowerToUser(paramUserInfo);
          ImChatMainView.this.mJoinView.setVisibility(8);
        }
      };
      EventDispacthManager.getInstance().dispatchAction("showLogin", local8);
      return;
    }
    actualFlowerToUser(paramUserInfo);
  }
  public void onEvent(Object paramObject1, String paramString, Object paramObject2)
  {
    if (paramString.equalsIgnoreCase("sendDiscuss"))
      sendMessage((String)paramObject2, 0);
    ChatActionsView.ChatActionType localChatActionType;
    do
    {
      return;
      if (paramString.equalsIgnoreCase("expression"))
      {
        if (this.isInputShowing)
        {
          this.mViewState = 1;
          this.mInputView.update("closeKeyboard", null);
          return;
        }
        if (this.mViewState == 1)
        {
          this.mViewState = 0;
          requestLayout();
          return;
        }
        if (!CloudCenter.getInstance().isLogin())
        {
          CloudCenter.OnLoginEventListerner local4 = new CloudCenter.OnLoginEventListerner()
          {
            public void onLoginFailed(int paramAnonymousInt)
            {
            }

            public void onLoginSuccessed(int paramAnonymousInt)
            {
              QTMSGManage.getInstance().sendStatistcsMessage("chat_functionclick", "expression");
              ImChatMainView.access$302(ImChatMainView.this, 1);
              ImChatMainView.this.mInputView.update("closeKeyboard", null);
              ImChatMainView.this.requestLayout();
            }
          };
          EventDispacthManager.getInstance().dispatchAction("showLogin", local4);
          return;
        }
        QTMSGManage.getInstance().sendStatistcsMessage("chat_functionclick", "expression");
        this.mViewState = 1;
        this.mInputView.update("closeKeyboard", null);
        requestLayout();
        return;
      }
      if (paramString.equalsIgnoreCase("expand"))
      {
        if (this.isInputShowing)
        {
          this.mViewState = 3;
          this.mInputView.update("closeKeyboard", null);
          return;
        }
        if (this.mViewState == 3)
        {
          this.mViewState = 0;
          requestLayout();
          return;
        }
        this.mViewState = 3;
        requestLayout();
        return;
      }
      if (paramString.equalsIgnoreCase("inviteFriends"))
      {
        if (this.isInputShowing)
        {
          this.mViewState = 2;
          this.mInputView.update("closeKeyboard", null);
          return;
        }
        if (this.mViewState != 2)
        {
          this.mViewState = 2;
          requestLayout();
          return;
        }
        this.mViewState = 0;
        requestLayout();
        return;
      }
      if (paramString.equalsIgnoreCase("selectExpression"))
      {
        this.mInputView.update("addExpression", paramObject2);
        return;
      }
      if (paramString.equalsIgnoreCase("deleteExpression"))
      {
        this.mInputView.update(paramString, paramObject2);
        return;
      }
      if (paramString.equalsIgnoreCase("scrollToFirstIndexAtMe"))
      {
        dispatchActionEvent(paramString, paramObject2);
        return;
      }
      if (paramString.equalsIgnoreCase("useraction"))
      {
        if (!CloudCenter.getInstance().isLogin())
        {
          CloudCenter.OnLoginEventListerner local5 = new CloudCenter.OnLoginEventListerner()
          {
            public void onLoginFailed(int paramAnonymousInt)
            {
            }

            public void onLoginSuccessed(int paramAnonymousInt)
            {
              InfoManager.getInstance().getUserProfile().followGroup(ImChatMainView.this.mTalkingId);
              ImChatMainView.this.mJoinView.setVisibility(8);
            }
          };
          EventDispacthManager.getInstance().dispatchAction("showLogin", local5);
          return;
        }
        InfoManager.getInstance().getUserProfile().followGroup(this.mTalkingId);
        this.mJoinView.setVisibility(8);
        return;
      }
      if (paramString.equalsIgnoreCase("flowerToAdmin"))
      {
        flowerToUser((UserInfo)paramObject2);
        return;
      }
      if (!paramString.equalsIgnoreCase("chatActionType"))
        break;
      localChatActionType = (ChatActionsView.ChatActionType)paramObject2;
      if (localChatActionType == ChatActionsView.ChatActionType.SHARE)
      {
        shareGroup();
        return;
      }
      if (localChatActionType == ChatActionsView.ChatActionType.ASKNAME)
      {
        sendMessage("现在播的什么歌?", 0);
        return;
      }
    }
    while ((localChatActionType == ChatActionsView.ChatActionType.ANSWERNAME) || (localChatActionType != ChatActionsView.ChatActionType.COLLECTION));
    return;
    if (paramString.equalsIgnoreCase("shareToPlatform"))
    {
      invite(((Integer)paramObject2).intValue());
      return;
    }
    dispatchActionEvent(paramString, paramObject2);
  }