rn,conference: log pin participant analytics events also on mobile
This commit is contained in:
parent
5261f61110
commit
4d5332cadf
|
@ -435,8 +435,6 @@ function _pinParticipant({ getState }, next, action) {
|
|||
const participants = state['features/base/participants'];
|
||||
const id = action.participant.id;
|
||||
const participantById = getParticipantById(participants, id);
|
||||
|
||||
if (typeof APP !== 'undefined') {
|
||||
const pinnedParticipant = getPinnedParticipant(participants);
|
||||
const actionName = id ? ACTION_PINNED : ACTION_UNPINNED;
|
||||
const local
|
||||
|
@ -447,8 +445,8 @@ function _pinParticipant({ getState }, next, action) {
|
|||
if (local) {
|
||||
participantIdForEvent = local;
|
||||
} else {
|
||||
participantIdForEvent = actionName === ACTION_PINNED
|
||||
? id : pinnedParticipant && pinnedParticipant.id;
|
||||
participantIdForEvent
|
||||
= actionName === ACTION_PINNED ? id : pinnedParticipant && pinnedParticipant.id;
|
||||
}
|
||||
|
||||
sendAnalytics(createPinnedEvent(
|
||||
|
@ -458,7 +456,6 @@ function _pinParticipant({ getState }, next, action) {
|
|||
local,
|
||||
'participant_count': conference.getParticipantCount()
|
||||
}));
|
||||
}
|
||||
|
||||
return next(action);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue