Consecutive playback and per-conversation playback rate
This commit is contained in:
parent
eb10aafd7c
commit
6cfe2a09df
20 changed files with 783 additions and 319 deletions
|
@ -1,10 +1,14 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// Copyright 2021-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { ipcRenderer } from 'electron';
|
||||
import type { Middleware } from 'redux';
|
||||
|
||||
import { COLORS_CHANGED, COLOR_SELECTED } from '../state/ducks/conversations';
|
||||
import {
|
||||
COLORS_CHANGED,
|
||||
COLOR_SELECTED,
|
||||
SET_VOICE_NOTE_PLAYBACK_RATE,
|
||||
} from '../state/ducks/conversations';
|
||||
|
||||
export const dispatchItemsMiddleware: Middleware =
|
||||
({ getState }) =>
|
||||
|
@ -18,7 +22,8 @@ export const dispatchItemsMiddleware: Middleware =
|
|||
action.type === 'items/REMOVE_EXTERNAL' ||
|
||||
action.type === 'items/RESET' ||
|
||||
action.type === COLOR_SELECTED ||
|
||||
action.type === COLORS_CHANGED
|
||||
action.type === COLORS_CHANGED ||
|
||||
action.type === SET_VOICE_NOTE_PLAYBACK_RATE
|
||||
) {
|
||||
ipcRenderer.send('preferences-changed', getState().items);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue