Examples of equalsNoResource()


Examples of com.calclab.emite.core.XmppURI.equalsNoResource()

    if (SessionStatus.loggedIn.equals(event.getStatus())) {
      final XmppURI currentUser = session.getCurrentUserURI();
      if (currentChatUser == null) {
        currentChatUser = currentUser;
      }
      if (currentUser.equalsNoResource(currentChatUser)) {
        for (final RoomChat chat : roomsByJID.values()) {
          chat.open(null);
        }
      }
    } else if (SessionStatus.loggingOut.equals(event.getStatus()) || SessionStatus.disconnected.equals(event.getStatus())) {
View Full Code Here

Examples of com.calclab.emite.core.XmppURI.equalsNoResource()

    if (SessionStatus.loggedIn.equals(event.getStatus())) {
      final XmppURI currentUser = session.getCurrentUserURI();
      if (currentChatUser == null) {
        currentChatUser = currentUser;
      }
      if (currentUser.equalsNoResource(currentChatUser)) {
        for (final PairChat chat : chats) {
          chat.open();
        }
      }
    } else if (SessionStatus.loggingOut.equals(event.getStatus()) || SessionStatus.disconnected.equals(event.getStatus())) {
View Full Code Here

Examples of com.calclab.emite.core.XmppURI.equalsNoResource()

  protected void receivePresence(final Presence presence) {
    final XmppURI occupantURI = presence.getFrom();
    final Presence.Type type = presence.getType();
    if (Presence.Type.unavailable.equals(type)) {
      removeOccupant(occupantURI);
      if (occupantURI.equalsNoResource(session.getCurrentUserURI())) {
        status = RoomStatus.locked;
        roomManager.closeRoom(this);
        eventBus.fireEventFromSource(new RoomChatChangedEvent(ChangeType.closed, this), roomManager);
      }
    } else if (!Presence.Type.error.equals(type)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.