mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Updated handling of history by adding two things.
1) Appending to file rather than full overwrite. 2) Reading using XPP (XML Pull Parser) git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@6632 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -94,7 +94,7 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
|
||||
|
||||
private final List packetIDList;
|
||||
private final List messageListeners;
|
||||
private List transcript;
|
||||
private List<Message> transcript;
|
||||
private List fileDropListeners;
|
||||
|
||||
/**
|
||||
@ -110,7 +110,7 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
|
||||
bottomPanel = new JPanel();
|
||||
|
||||
messageListeners = new ArrayList();
|
||||
transcript = new ArrayList();
|
||||
transcript = new ArrayList<Message>();
|
||||
editorBar = new JPanel(new FlowLayout(FlowLayout.LEFT, 1, 1));
|
||||
fileDropListeners = new ArrayList();
|
||||
|
||||
@ -529,7 +529,7 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
|
||||
*
|
||||
* @return - the map of current chat responses.
|
||||
*/
|
||||
public List getTranscripts() {
|
||||
public List<Message> getTranscripts() {
|
||||
return transcript;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user