|
@@ -2,6 +2,7 @@
|
2
|
2
|
|
3
|
3
|
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../../app';
|
4
|
4
|
import { CONFERENCE_LEFT, CONFERENCE_WILL_JOIN } from '../conference';
|
|
5
|
+import { CALLING, INVITED } from '../../presence-status';
|
5
|
6
|
import { MiddlewareRegistry, StateListenerRegistry } from '../redux';
|
6
|
7
|
import UIEvents from '../../../../service/UI/UIEvents';
|
7
|
8
|
import { playSound, registerSound, unregisterSound } from '../sounds';
|
|
@@ -193,7 +194,12 @@ function _maybePlaySounds({ getState, dispatch }, action) {
|
193
|
194
|
&& (!startAudioMuted
|
194
|
195
|
|| getParticipantCount(state) < startAudioMuted)) {
|
195
|
196
|
if (action.type === PARTICIPANT_JOINED) {
|
196
|
|
- dispatch(playSound(PARTICIPANT_JOINED_SOUND_ID));
|
|
197
|
+ const { presence } = action.participant;
|
|
198
|
+
|
|
199
|
+ // The sounds for the poltergeist are handled by features/invite.
|
|
200
|
+ if (presence !== INVITED && presence !== CALLING) {
|
|
201
|
+ dispatch(playSound(PARTICIPANT_JOINED_SOUND_ID));
|
|
202
|
+ }
|
197
|
203
|
} else if (action.type === PARTICIPANT_LEFT) {
|
198
|
204
|
dispatch(playSound(PARTICIPANT_LEFT_SOUND_ID));
|
199
|
205
|
}
|