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): Fixes send/receive polls and processing answers.
damencho27eec7b19ef7
diff --git a/react/features/polls/middleware.ts b/react/features/polls/middleware.tsindex 7dc2fa3d87..6b0ff8d38f 100644--- a/react/features/polls/middleware.ts+++ b/react/features/polls/middleware.ts@@ -130,7 +130,8 @@ function _handleReceivePollsMessage(data: any, dispatch: IStore['dispatch'], getconst tmp = {id: pollId,answers,- question+ question,+ senderId};// Check integrity of the poll data.@@ -151,7 +152,7 @@ function _handleReceivePollsMessage(data: any, dispatch: IStore['dispatch'], getname: answer,voters: []};- }).slice(MAX_ANSWERS),+ }).slice(0, MAX_ANSWERS),saved: false,editing: false};@@ -172,7 +173,7 @@ function _handleReceivePollsMessage(data: any, dispatch: IStore['dispatch'], getconst receivedAnswer: IAnswer = {voterId,pollId,- answers: answers.slice(MAX_ANSWERS)+ answers: answers.slice(0, MAX_ANSWERS)};dispatch(receiveAnswer(pollId, receivedAnswer));