fix: normalize "in less than a minute" to "now" in chat list timestamp (#13874)

This commit is contained in:
Sivin Varghese
2026-04-14 16:36:10 +05:30
committed by aakashb95
parent 92840bfb97
commit 7c0c1daae7
2 changed files with 2 additions and 0 deletions
@@ -68,6 +68,7 @@ export const shortTimestamp = (time, withAgo = false) => {
const suffix = withAgo ? ' ago' : '';
const timeMappings = {
'less than a minute ago': 'now',
'in less than a minute': 'now',
'a minute ago': `1m${suffix}`,
'an hour ago': `1h${suffix}`,
'a day ago': `1d${suffix}`,