Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

allow setting the feedback percentage

Bettenbuk Zoltanbbca0fc35799
diff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.js
index 791f26d123..a5525449ab 100644
--- a/react/features/base/config/configWhitelist.js
+++ b/react/features/base/config/configWhitelist.js
@@ -103,6 +103,7 @@ export default [
'enableTcc',
'etherpad_base',
'failICE',
+ 'feedbackPercentage',
'fileRecordingsEnabled',
'firefox_fake_device',
'forceJVB121Ratio',
diff --git a/react/features/feedback/actions.js b/react/features/feedback/actions.js
index 52c9dc82a1..2f238c04b0 100644
--- a/react/features/feedback/actions.js
+++ b/react/features/feedback/actions.js
@@ -54,6 +54,7 @@ export function maybeOpenFeedbackDialog(conference: Object) {
return (dispatch: Dispatch<any>, getState: Function): Promise<R> => {
const state = getState();
+ const { feedbackPercentage = 100 } = state['features/base/config'];
if (interfaceConfig.filmStripOnly || config.iAmRecorder) {
// Intentionally fall through the if chain to prevent further action
@@ -69,7 +70,7 @@ export function maybeOpenFeedbackDialog(conference: Object) {
feedbackSubmitted: true,
showThankYou: true
});
- } else if (conference.isCallstatsEnabled()) {
+ } else if (conference.isCallstatsEnabled() && feedbackPercentage > Math.random() * 100) {
return new Promise(resolve => {
dispatch(openFeedbackDialog(conference, () => {
const { submitted } = getState()['features/feedback'];