|
|
@@ -13,6 +13,7 @@ import {
|
|
13
|
13
|
forEachConference,
|
|
14
|
14
|
getCurrentConference
|
|
15
|
15
|
} from '../conference';
|
|
|
16
|
+import { getDisableRemoveRaisedHandOnFocus } from '../config/functions.any';
|
|
16
|
17
|
import { JitsiConferenceEvents } from '../lib-jitsi-meet';
|
|
17
|
18
|
import { MiddlewareRegistry, StateListenerRegistry } from '../redux';
|
|
18
|
19
|
import { playSound, registerSound, unregisterSound } from '../sounds';
|
|
|
@@ -81,7 +82,8 @@ MiddlewareRegistry.register(store => next => action => {
|
|
81
|
82
|
// and only if it was set when this is the local participant
|
|
82
|
83
|
|
|
83
|
84
|
const { conference, id } = action.participant;
|
|
84
|
|
- const participant = getLocalParticipant(store.getState());
|
|
|
85
|
+ const state = store.getState();
|
|
|
86
|
+ const participant = getLocalParticipant(state);
|
|
85
|
87
|
const isLocal = participant && participant.id === id;
|
|
86
|
88
|
|
|
87
|
89
|
if (isLocal && participant.raisedHand === undefined) {
|
|
|
@@ -90,13 +92,14 @@ MiddlewareRegistry.register(store => next => action => {
|
|
90
|
92
|
break;
|
|
91
|
93
|
}
|
|
92
|
94
|
|
|
93
|
|
- participant
|
|
94
|
|
- && store.dispatch(participantUpdated({
|
|
|
95
|
+ if (!getDisableRemoveRaisedHandOnFocus(state)) {
|
|
|
96
|
+ participant && store.dispatch(participantUpdated({
|
|
95
|
97
|
conference,
|
|
96
|
98
|
id,
|
|
97
|
99
|
local: isLocal,
|
|
98
|
100
|
raisedHand: false
|
|
99
|
101
|
}));
|
|
|
102
|
+ }
|
|
100
|
103
|
|
|
101
|
104
|
break;
|
|
102
|
105
|
}
|