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(polls) limit maximum amount of answers
Saúl Ibarra Corretgé4e0001c9af4e
diff --git a/react/features/polls/middleware.ts b/react/features/polls/middleware.tsindex fd4ec257d6..7dc2fa3d87 100644--- a/react/features/polls/middleware.ts+++ b/react/features/polls/middleware.ts@@ -18,6 +18,11 @@ import {} from './constants';import { IAnswer, IPoll, IPollData } from './types';+/**+ * The maximum number of answers a poll can have.+ */+const MAX_ANSWERS = 32;+/*** Set up state change listener to perform maintenance tasks when the conference* is left or failed, e.g. Clear messages or close the chat modal if it's left@@ -146,7 +151,7 @@ function _handleReceivePollsMessage(data: any, dispatch: IStore['dispatch'], getname: answer,voters: []};- }),+ }).slice(MAX_ANSWERS),saved: false,editing: false};@@ -167,7 +172,7 @@ function _handleReceivePollsMessage(data: any, dispatch: IStore['dispatch'], getconst receivedAnswer: IAnswer = {voterId,pollId,- answers+ answers: answers.slice(MAX_ANSWERS)};dispatch(receiveAnswer(pollId, receivedAnswer));