Unify audio playback under App component
This commit is contained in:
parent
8b30fc17cd
commit
2cd4160422
19 changed files with 290 additions and 80 deletions
8
ts/state/selectors/audioPlayer.ts
Normal file
8
ts/state/selectors/audioPlayer.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { StateType } from '../reducer';
|
||||
|
||||
export const isPaused = (state: StateType): boolean => {
|
||||
return state.audioPlayer.activeAudioID === undefined;
|
||||
};
|
|
@ -309,7 +309,7 @@ export function getPropsForMessage(
|
|||
readReceiptSetting: boolean,
|
||||
regionCode: string,
|
||||
accountSelector: (identifier?: string) => boolean
|
||||
): PropsForMessage {
|
||||
): Omit<PropsForMessage, 'renderingContext'> {
|
||||
const contact = getContact(
|
||||
message,
|
||||
conversationSelector,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue