예제 #1
0
  void updateMainStatus(Xmpp xmpp) {
    if (isSingleUserContact()) {
      SubContact c = getCurrentSubContact();
      if (null == c) {
        setOfflineStatus();

      } else if (this instanceof XmppServiceContact) {
        setStatus(c.status, c.statusText);

      } else {
        xmpp.setContactStatus(this, c.status, c.statusText);
      }
    }
  }