mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
ref(notifications): move join notification firing to notifications feature
This commit is contained in:
committed by
virtuacoplenny
parent
3195a449ca
commit
979b773c3c
@@ -20,8 +20,7 @@ import {
|
||||
localParticipantJoined,
|
||||
localParticipantLeft,
|
||||
participantLeft,
|
||||
participantUpdated,
|
||||
showParticipantJoinedNotification
|
||||
participantUpdated
|
||||
} from './actions';
|
||||
import {
|
||||
DOMINANT_SPEAKER_CHANGED,
|
||||
@@ -118,15 +117,7 @@ MiddlewareRegistry.register(store => next => action => {
|
||||
case PARTICIPANT_JOINED: {
|
||||
_maybePlaySounds(store, action);
|
||||
|
||||
const result = _participantJoinedOrUpdated(store, next, action);
|
||||
|
||||
const { participant: p } = action;
|
||||
|
||||
if (!p.local) {
|
||||
store.dispatch(showParticipantJoinedNotification(getParticipantDisplayName(store.getState, p.id)));
|
||||
}
|
||||
|
||||
return result;
|
||||
return _participantJoinedOrUpdated(store, next, action);
|
||||
}
|
||||
|
||||
case PARTICIPANT_LEFT:
|
||||
|
||||
Reference in New Issue
Block a user