static /* synthetic */ void access$900( MultiUserChat x0, Set x1, boolean x2, MUCUser x3, String x4) { if (x1.contains(Status.KICKED_307)) { if (x2) { x0.joined = false; x0.fireUserStatusListeners("kicked", new Object[] {x3.item.actor, x3.item.reason}); x0.occupantsMap.clear(); x0.nickname = null; x0.userHasLeft(); } else { List arrayList = new ArrayList(); arrayList.add(x4); arrayList.add(x3.item.actor); arrayList.add(x3.item.reason); x0.fireParticipantStatusListeners("kicked", arrayList); } } if (x1.contains(Status.BANNED_301)) { if (x2) { x0.joined = false; x0.fireUserStatusListeners("banned", new Object[] {x3.item.actor, x3.item.reason}); x0.occupantsMap.clear(); x0.nickname = null; x0.userHasLeft(); } else { arrayList = new ArrayList(); arrayList.add(x4); arrayList.add(x3.item.actor); arrayList.add(x3.item.reason); x0.fireParticipantStatusListeners("banned", arrayList); } } if (x1.contains(Status.REMOVED_AFFIL_CHANGE_321) && x2) { x0.joined = false; x0.fireUserStatusListeners("membershipRevoked", new Object[0]); x0.occupantsMap.clear(); x0.nickname = null; x0.userHasLeft(); } if (x1.contains(Status.NEW_NICKNAME_303)) { arrayList = new ArrayList(); arrayList.add(x4); arrayList.add(x3.item.nick); x0.fireParticipantStatusListeners("nicknameChanged", arrayList); } }
private synchronized void leave() throws NotConnectedException { if (this.joined) { Presence leavePresence = new Presence(Type.unavailable); leavePresence.to = this.room + MqttTopic.TOPIC_LEVEL_SEPARATOR + this.nickname; for (PacketInterceptor interceptPacket : this.presenceInterceptors) { interceptPacket.interceptPacket(leavePresence); } this.connection.sendPacket(leavePresence); this.occupantsMap.clear(); this.nickname = null; this.joined = false; userHasLeft(); } }