mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Added new invitation dialog for Fastpath.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5262 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -12,8 +12,8 @@ package org.jivesoftware.spark;
|
||||
|
||||
import org.jivesoftware.resource.SparkRes;
|
||||
import org.jivesoftware.smack.Roster;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
import org.jivesoftware.smack.packet.Presence;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
import org.jivesoftware.smackx.muc.Occupant;
|
||||
import org.jivesoftware.smackx.packet.VCard;
|
||||
import org.jivesoftware.spark.ui.ChatRoom;
|
||||
@ -25,12 +25,12 @@ import org.jivesoftware.spark.util.ModelUtil;
|
||||
import org.jivesoftware.spark.util.log.Log;
|
||||
import org.jivesoftware.sparkimpl.profile.VCardManager;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
/**
|
||||
* Handles all users in the agent application. Each user or chatting user can be referenced from the User
|
||||
* Manager. You would use the UserManager to get visitors in a chat room or secondary agents.
|
||||
@ -60,7 +60,10 @@ public class UserManager {
|
||||
}
|
||||
|
||||
// Default to node if nothing.
|
||||
return SparkManager.getSessionManager().getUsername();
|
||||
String username = SparkManager.getSessionManager().getUsername();
|
||||
username = StringUtils.escapeNode(username);
|
||||
|
||||
return username;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user