2020-07-15 21:04:14 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import "../../../../../shared"
|
|
|
|
import "../../../../../imports"
|
|
|
|
|
|
|
|
StyledTextEdit {
|
|
|
|
id: chatTime
|
2020-07-17 19:44:25 +00:00
|
|
|
visible: (isEmoji || isMessage || isSticker || isImage)
|
2020-07-15 21:04:14 +00:00
|
|
|
color: Style.current.darkGrey
|
|
|
|
text: {
|
|
|
|
let messageDate = new Date(Math.floor(timestamp))
|
|
|
|
let minutes = messageDate.getMinutes();
|
|
|
|
let hours = messageDate.getHours();
|
|
|
|
return (hours < 10 ? "0" + hours : hours) + ":" + (minutes < 10 ? "0" + minutes : minutes)
|
|
|
|
}
|
|
|
|
font.pixelSize: 10
|
|
|
|
readOnly: true
|
|
|
|
selectByMouse: true
|
|
|
|
}
|