diff --git a/src/renderer/component/wunderbar/index.js b/src/renderer/component/wunderbar/index.js index 24eef5462..830af2c94 100644 --- a/src/renderer/component/wunderbar/index.js +++ b/src/renderer/component/wunderbar/index.js @@ -9,6 +9,7 @@ import { doSearch, doToast, } from 'lbry-redux'; +import { Lbryio } from 'lbryinc'; import { makeSelectClientSetting } from 'redux/selectors/settings'; import * as settings from 'constants/settings'; import { doNavigate } from 'redux/actions/navigation'; @@ -34,6 +35,8 @@ const perform = dispatch => ({ onSearch: (query, size) => { dispatch(doSearch(query, size)); dispatch(doNavigate(`/search`, { query })); + // Ideally this would live inside doSearch, but lbry-redux does not have access to lbryinc + Lbryio.call('event', 'search'); }, onSubmit: (uri, extraParams) => dispatch(doNavigate('/show', { uri, ...extraParams })), updateSearchQuery: query => dispatch(doUpdateSearchQuery(query)), diff --git a/src/renderer/redux/actions/publish.js b/src/renderer/redux/actions/publish.js index 0d64cbcc3..f024d362b 100644 --- a/src/renderer/redux/actions/publish.js +++ b/src/renderer/redux/actions/publish.js @@ -6,6 +6,7 @@ import type { UpdatePublishFormAction, PublishParams, } from 'redux/reducers/publish'; +import { CC_LICENSES, COPYRIGHT, OTHER, NONE, PUBLIC_DOMAIN } from 'constants/licenses'; import * as MODALS from 'constants/modal_types'; import { ACTIONS, @@ -18,12 +19,12 @@ import { selectMyClaimsWithoutChannels, doError, } from 'lbry-redux'; +import { Lbryio } from 'lbryinc'; import { doOpenModal } from 'redux/actions/app'; import { selectosNotificationsEnabled } from 'redux/selectors/settings'; import { doNavigate } from 'redux/actions/navigation'; import fs from 'fs'; import path from 'path'; -import { CC_LICENSES, COPYRIGHT, OTHER, NONE, PUBLIC_DOMAIN } from 'constants/licenses'; type Action = UpdatePublishFormAction | { type: ACTIONS.CLEAR_PUBLISH }; @@ -273,6 +274,8 @@ export const doPublish = (params: PublishParams) => ( dispatch({ type: ACTIONS.PUBLISH_START }); const success = pendingClaim => { + Lbryio.call('event', 'publish'); + const actions = []; actions.push({