remove default locally

This commit is contained in:
Diogo
2024-09-20 18:41:17 +01:00
parent 63c28c64d1
commit 1cc02a61b7
2 changed files with 4 additions and 5 deletions
@@ -2422,10 +2422,9 @@ data class CITimed(
fun getTimestampDateText(t: Instant): String {
val tz = TimeZone.currentSystemDefault()
val time = t.toLocalDateTime(tz).toJavaLocalDateTime()
val weekday = time.format(DateTimeFormatter.ofPattern("EEE", Locale.getDefault()))
val dayMonthYear = time.format(DateTimeFormatter.ofPattern(
if (Clock.System.now().toLocalDateTime(tz).year == time.year) "d MMM" else "d MMM YYYY",
Locale.getDefault())
val weekday = time.format(DateTimeFormatter.ofPattern("EEE"))
val dayMonthYear = time.format(DateTimeFormatter.ofPattern(
if (Clock.System.now().toLocalDateTime(tz).year == time.year) "d MMM" else "d MMM YYYY")
)
return "$weekday, $dayMonthYear"
@@ -1898,7 +1898,7 @@ private fun handleForwardConfirmation(
)
}
private fun getItemSeparation(chatItem: ChatItem, nextItem: ChatItem?): ItemSeparation {
private fun getItemSeparation(chatItem: ChatItem, previousItem: ChatItem?): ItemSeparation {
if (nextItem == null) {
return ItemSeparation(
timestamp = true,