ChatRoom: remove unused addToTranscript(String to, String from, String body, Date date)

This commit is contained in:
Sergey Ponomarev
2025-10-19 11:37:10 +03:00
committed by Guus der Kinderen
parent a5468137fe
commit 4d76f039c7

View File

@ -565,25 +565,6 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
scrollToBottom();
}
/**
* Adds a new message to the transcript history.
*
* @param to who the message is to.
* @param from who the message was from.
* @param body the body of the message.
* @param date when the message was received.
*/
public void addToTranscript(String to, String from, String body, Date date) {
final Message newMessage = new Message();
newMessage.setTo(JidCreate.fromOrThrowUnchecked(to));
newMessage.setFrom(JidCreate.fromOrThrowUnchecked(from));
newMessage.setBody(body);
final Map<String, Object> properties = new HashMap<>();
properties.put("date", new Date());
newMessage.addExtension(new JivePropertiesExtension(properties));
transcript.add(newMessage);
}
/**
* Scrolls the chat window to the bottom.
*/