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 raise hand toggled state
yanas1d34a50d2fa4
diff --git a/react/features/toolbox/actions.native.js b/react/features/toolbox/actions.native.jsindex c93ad18c0a..168dca1278 100644--- a/react/features/toolbox/actions.native.js+++ b/react/features/toolbox/actions.native.js@@ -17,10 +17,9 @@ import {/*** FIXME: We should make sure all common functions for native and web are- * separated in a global functions file, as well as all actions! Currently this- * file contains actions that are imported in actions.web.+ * merged in a global functions file.*/-import { getButton } from './functions.web';+import { getButton } from './functions.native';/*** Event handler for local raise hand changed event.diff --git a/react/features/toolbox/functions.native.js b/react/features/toolbox/functions.native.jsindex 70277956a1..ec4ce6b50f 100644--- a/react/features/toolbox/functions.native.js+++ b/react/features/toolbox/functions.native.js@@ -100,3 +100,18 @@ export function abstractMapStateToProps(state: Object): Object {_visible: visible};}++/**+ * Returns the button object corresponding to the given buttonName.+ *+ * @param {string} buttonName - The name of the button.+ * @param {Object} state - The current state.+ * @returns {Object} - The button object.+ */+export function getButton(buttonName: string, state: Object) {+ const { primaryToolbarButtons, secondaryToolbarButtons }+ = state['features/toolbox'];++ return primaryToolbarButtons.get(buttonName)+ || secondaryToolbarButtons.get(buttonName);+}diff --git a/react/features/toolbox/functions.web.js b/react/features/toolbox/functions.web.jsindex 660792ff34..56cd3f8ed9 100644--- a/react/features/toolbox/functions.web.js+++ b/react/features/toolbox/functions.web.js@@ -13,21 +13,6 @@ export { abstractMapStateToProps } from './functions.native';/* eslint-disable flowtype/space-before-type-colon */-/**- * Returns the button object corresponding to the given buttonName.- *- * @param {string} buttonName - The name of the button.- * @param {Object} state - The current state.- * @returns {Object} - The button object.- */-export function getButton(buttonName: string, state: Object) {- const { primaryToolbarButtons, secondaryToolbarButtons }- = state['features/toolbox'];-- return primaryToolbarButtons.get(buttonName)- || secondaryToolbarButtons.get(buttonName);-}-/*** Takes toolbar button props and maps them to HTML attributes to set.*