setNoSrcDataNotificationUid

This commit is contained in:
Andrei Gavrilescu
2019-11-25 14:31:08 +02:00
committed by Hristo Terezov
parent 191da551e3
commit 7828bf8d46
6 changed files with 8 additions and 303 deletions

View File

@@ -3,11 +3,11 @@
* no data from source notification. Used to check if such a notification was previously displayed.
*
* {
* type: SET_NO_SRC_DATA_NOTI_UID,
* type: SET_NO_SRC_DATA_NOTIFICATION_UID,
* uid: ?number
* }
*/
export const SET_NO_SRC_DATA_NOTI_UID = 'SET_NO_SRC_DATA_NOTI_UID';
export const SET_NO_SRC_DATA_NOTIFICATION_UID = 'SET_NO_SRC_DATA_NOTIFICATION_UID';
/**
* The type of redux action dispatched to disable screensharing or to start the

View File

@@ -2,7 +2,7 @@ import { PARTICIPANT_ID_CHANGED } from '../participants';
import { ReducerRegistry, set } from '../redux';
import {
SET_NO_SRC_DATA_NOTI_UID,
SET_NO_SRC_DATA_NOTIFICATION_UID,
TRACK_ADDED,
TRACK_CREATE_CANCELED,
TRACK_CREATE_ERROR,
@@ -140,7 +140,7 @@ ReducerRegistry.register('features/base/tracks', (state = [], action) => {
*/
ReducerRegistry.register('features/base/no-src-data', (state = {}, action) => {
switch (action.type) {
case SET_NO_SRC_DATA_NOTI_UID:
case SET_NO_SRC_DATA_NOTIFICATION_UID:
return set(state, 'noSrcDataNotificationUid', action.uid);
default: