Now Spark shows timestamp for all activities in MUC room.
@@ -28,7 +28,7 @@ import java.time.ZonedDateTime;
*
* @author Guus der Kinderen, guus.der.kinderen@gmail.com
*/
-public class CustomTextEntry extends TranscriptWindowEntry
+public class CustomTextEntry extends TimeStampedEntry
{
private final String message;
private final Color textColor;
@@ -71,7 +71,7 @@ public class CustomTextEntry extends TranscriptWindowEntry
{
final Document doc = chatArea.getDocument();
- doc.insertString( doc.getLength(), message + "\n", getStyle() );
+ doc.insertString( doc.getLength(), getFormattedTimestamp() + message + "\n", getStyle() );
chatArea.setCaretPosition( doc.getLength() );
}
}
