Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(rn) fix displaying meeting times for yesterday
gayatriii080342163731b3c7
diff --git a/react/features/recent-list/functions.native.ts b/react/features/recent-list/functions.native.tsindex 1d1dd5a008..0a7b63752b 100644--- a/react/features/recent-list/functions.native.ts+++ b/react/features/recent-list/functions.native.ts@@ -68,12 +68,16 @@ function _toDateString(itemDate: number, t: Function) {const dateInMs = date.getTime();const now = new Date();const todayInMs = new Date().setHours(0, 0, 0, 0);- const yesterdayInMs = todayInMs - 86400000; // 1 day = 86400000ms+ const yesterday = new Date();++ yesterday.setDate(yesterday.getDate() - 1);+ yesterday.setHours(0, 0, 0, 0);+ const yesterdayInMs = yesterday.getTime();if (dateInMs >= todayInMs) {return m.fromNow();} else if (dateInMs >= yesterdayInMs) {- return t('dateUtils.yesterday');+ return `${t('dateUtils.yesterday')}, ${m.format('h:mm A')}`;} else if (date.getFullYear() !== now.getFullYear()) {// We only want to include the year in the date if its not the current// year.