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
feat(visitors): Start shortening the number above 1000.
damenchoa6ff652a0384
diff --git a/react/features/visitors/functions.ts b/react/features/visitors/functions.tsindex 1116d4ebc4..825b1fe6ac 100644--- a/react/features/visitors/functions.ts+++ b/react/features/visitors/functions.ts@@ -4,14 +4,14 @@ import { toState } from '../base/redux/functions';/*** A short string to represent the number of visitors.- * Over 100 we show numbers like 0.2 K or 9.5 K.+ * Over 1000 we show numbers like 1.0 K or 9.5 K.** @param {number} visitorsCount - The number of visitors to shorten.** @returns {string} Short string representing the number of visitors.*/export function getVisitorsShortText(visitorsCount: number) {- return visitorsCount > 100 ? `${Math.round(visitorsCount / 100) / 10} K` : String(visitorsCount);+ return visitorsCount >= 1000 ? `${Math.round(visitorsCount / 100) / 10} K` : String(visitorsCount);}/**