Avoid duplicate FileTransfer-panel when the chat history is enabled

cusax-fix
Ingo Bauersachs 13 years ago
parent 67857bddcf
commit 14c78d292c

@ -722,10 +722,13 @@ else if (o instanceof FileRecord)
{
FileRecord fileRecord = (FileRecord) o;
FileHistoryConversationComponent component
= new FileHistoryConversationComponent(fileRecord);
conversationPanel.addComponent(component);
if (!fileRecord.getID().equals(escapedMessageID))
{
FileHistoryConversationComponent component
= new FileHistoryConversationComponent(fileRecord);
conversationPanel.addComponent(component);
}
}
if (historyString != null)

@ -739,7 +739,7 @@ public void fileTransferRequestReceived(FileTransferRequestEvent event)
INCOMING_FILE,
title,
request.getFileName(),
null);
request.getID());
}
catch(Throwable t)
{

Loading…
Cancel
Save