Sets the selected endpoint in sendReaction.

This commit is contained in:
Boris Grozev 2018-02-08 20:26:29 -06:00
parent 1091ca4974
commit 550bfc14d7
2 changed files with 5 additions and 2 deletions

View File

@ -44,7 +44,7 @@
"jquery-i18next": "1.2.0",
"js-md5": "0.6.1",
"jwt-decode": "2.2.0",
"lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#5f8c0a662af086e7bcc19c010f1129afc9b6d650",
"lib-jitsi-meet": "github:bgrozev/lib-jitsi-meet#ff24a29ce22646e9259294094887d8e6c2a5e148",
"lodash": "4.17.4",
"moment": "2.19.4",
"nuclear-js": "1.4.0",

View File

@ -12,10 +12,13 @@ export function sendReaction(reaction: string) {
// reaction = 'thumbsup', 'heart', etc
return (dispatch: Dispatch, getState: Function) => {
const selectedEndpointId
= getState()['features/base/conference']
.conference.selectedEndpointId;
const payload = {
type: 'reaction',
reaction,
targetEndpoint: 'target' // TODO use the selectedEndpoint
targetEndpoint: selectedEndpointId || 'target'
};
getState()['features/base/conference'].conference.sendTextMessage(