fix(Chat/FetchMessage): Fetch date is empty in new chats with no messages
Fixes #5726
This commit is contained in:
parent
8eff1bdfd0
commit
3b86032bc8
|
@ -301,8 +301,8 @@ QtObject {
|
||||||
const formatDDMMYY = "dddd d MMMM yyyy"
|
const formatDDMMYY = "dddd d MMMM yyyy"
|
||||||
const formatMMDDYY = "dddd, MMMM d, yyyy"
|
const formatMMDDYY = "dddd, MMMM d, yyyy"
|
||||||
const currentFormat = isDDMMYYDateFormat ? formatDDMMYY : formatMMDDYY
|
const currentFormat = isDDMMYYDateFormat ? formatDDMMYY : formatMMDDYY
|
||||||
return !!value ? Qt.formatDate(new Date(), currentFormat) :
|
return !value ? Qt.formatDate(new Date(), currentFormat) :
|
||||||
Qt.formatDate(new Date(value), currentFormat)
|
Qt.formatDate(new Date(value), currentFormat)
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatLongDateTime(value, isDDMMYYDateFormat, is24hTimeFormat) {
|
function formatLongDateTime(value, isDDMMYYDateFormat, is24hTimeFormat) {
|
||||||
|
|
Loading…
Reference in New Issue