message: refactor(content): do not play audio when searching one dict
diff: @@ -58,20 +58,27 @@ export const searchStartEpic: Epic = (action$, state$) =>
  )
  ).pipe(share())
  - const playAudio$ = searchResults$$.pipe(
  + const playAudio$ =
  + payload && payload.id
  + ? empty()
  + : searchResults$$.pipe(
  filter(({ id, audio, result }) => {
  if (!audio) return false
  if (id === cn.dict && audio.py) return true
  if (id === en.dict && (audio.uk || audio.us)) return true
  return (
  id === machine.dict &&
  - !!(result as MachineTranslateResult<DictID>)[machine.src].audio
  + !!(result as MachineTranslateResult<DictID>)[machine.src]
  + .audio
  )
  }),
  take(1),
  tap(({ id, audio, result }) => {
  if (id === cn.dict) {
  - return message.send({ type: 'PLAY_AUDIO', payload: audio!.py! })
  + return message.send({
  + type: 'PLAY_AUDIO',
  + payload: audio!.py!
  + })
  }
  if (id === en.dict) {
  @@ -84,8 +91,9 @@ export const searchStartEpic: Epic = (action$, state$) =>
  message.send({
  type: 'PLAY_AUDIO',
  - payload: (result as MachineTranslateResult<DictID>)[machine.src]
  - .audio!
  + payload: (result as MachineTranslateResult<DictID>)[
  + machine.src
  + ].audio!
  })
  }),
  // never pass to down stream
  