fix: participant join notifications

This commit is contained in:
Shawn 2021-12-15 19:22:09 +00:00 committed by Дамян Минков
parent a6ec9e9f5d
commit 8fa22ce059
1 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ const _throttledNotifyParticipantLeft = throttle((dispatch: Dispatch<any>, getSt
* @returns {Function}
*/
export function showParticipantJoinedNotification(displayName: string) {
leftParticipantsNames.push(displayName);
joinedParticipantsNames.push(displayName);
return (dispatch: Dispatch<any>, getState: Function) => _throttledNotifyParticipantConnected(dispatch, getState);
}
@ -307,7 +307,7 @@ export function showParticipantJoinedNotification(displayName: string) {
* @returns {Function}
*/
export function showParticipantLeftNotification(displayName: string) {
joinedParticipantsNames.push(displayName);
leftParticipantsNames.push(displayName);
return (dispatch: Dispatch<any>, getState: Function) => _throttledNotifyParticipantLeft(dispatch, getState);
}