mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 13:57:53 +00:00
misc: fix dispatching actions twice when mapDispatchToProps is used
The functions need not return anything, or it will be dispatched as another action.
This commit is contained in:
committed by
Lyubo Marinov
parent
0c446026d6
commit
0bf9a78e4c
@@ -268,7 +268,7 @@ function _mapDispatchToProps(dispatch) {
|
||||
* @type {Function}
|
||||
*/
|
||||
_onRoomLock() {
|
||||
return dispatch(beginRoomLockRequest());
|
||||
dispatch(beginRoomLockRequest());
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -279,7 +279,7 @@ function _mapDispatchToProps(dispatch) {
|
||||
* @type {Function}
|
||||
*/
|
||||
_onShareRoom() {
|
||||
return dispatch(beginShareRoom());
|
||||
dispatch(beginShareRoom());
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -290,7 +290,7 @@ function _mapDispatchToProps(dispatch) {
|
||||
* @type {Function}
|
||||
*/
|
||||
_onToggleAudioOnly() {
|
||||
return dispatch(toggleAudioOnly());
|
||||
dispatch(toggleAudioOnly());
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -302,7 +302,7 @@ function _mapDispatchToProps(dispatch) {
|
||||
* @type {Function}
|
||||
*/
|
||||
_onToggleCameraFacingMode() {
|
||||
return dispatch(toggleCameraFacingMode());
|
||||
dispatch(toggleCameraFacingMode());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user