Make it possible to set the spotlight to a certain peer, overriding speaker

This commit is contained in:
Håvar Aambø Fosstveit
2018-10-29 23:19:41 +01:00
parent aeaaa010c5
commit df731a3ce0
6 changed files with 75 additions and 10 deletions
+8
View File
@@ -221,6 +221,14 @@ export const sendFile = (file, name, picture) =>
};
};
export const setSelectedPeer = (selectedPeerName) =>
{
return {
type : 'REQUEST_SELECTED_PEER',
payload : { selectedPeerName }
};
};
// This returns a redux-thunk action (a function).
export const notify = ({ type = 'info', text, timeout }) =>
{
+9
View File
@@ -237,6 +237,15 @@ export default ({ dispatch, getState }) => (next) =>
client.sendFile(action.payload);
break;
}
case 'REQUEST_SELECTED_PEER':
{
const { selectedPeerName } = action.payload;
client.setSelectedPeer(selectedPeerName);
break;
}
}
return next(action);