Better handling of reconnect. Clear the state properly and handle spotlights.
This commit is contained in:
@@ -10,6 +10,11 @@ export const removeConsumer = (consumerId, peerId) =>
|
||||
payload : { consumerId, peerId }
|
||||
});
|
||||
|
||||
export const clearConsumers = () =>
|
||||
({
|
||||
type : 'CLEAR_CONSUMERS'
|
||||
});
|
||||
|
||||
export const setConsumerPaused = (consumerId, originator) =>
|
||||
({
|
||||
type : 'SET_CONSUMER_PAUSED',
|
||||
|
||||
@@ -10,6 +10,11 @@ export const removePeer = (peerId) =>
|
||||
payload : { peerId }
|
||||
});
|
||||
|
||||
export const clearPeers = () =>
|
||||
({
|
||||
type : 'CLEAR_PEERS'
|
||||
});
|
||||
|
||||
export const setPeerDisplayName = (displayName, peerId) =>
|
||||
({
|
||||
type : 'SET_PEER_DISPLAY_NAME',
|
||||
|
||||
@@ -130,6 +130,11 @@ export const setSpotlights = (spotlights) =>
|
||||
payload : { spotlights }
|
||||
});
|
||||
|
||||
export const clearSpotlights = () =>
|
||||
({
|
||||
type : 'CLEAR_SPOTLIGHTS'
|
||||
});
|
||||
|
||||
export const toggleJoined = () =>
|
||||
({
|
||||
type : 'TOGGLE_JOINED'
|
||||
|
||||
Reference in New Issue
Block a user