Unify audio playback under App component
This commit is contained in:
parent
8b30fc17cd
commit
2cd4160422
19 changed files with 290 additions and 80 deletions
|
@ -80,7 +80,7 @@ type LinkNotificationType = {
|
|||
};
|
||||
type MessageType = {
|
||||
type: 'message';
|
||||
data: MessageProps;
|
||||
data: Omit<MessageProps, 'renderingContext'>;
|
||||
};
|
||||
type UnsupportedMessageType = {
|
||||
type: 'unsupportedMessage';
|
||||
|
@ -189,7 +189,13 @@ export class TimelineItem extends React.PureComponent<PropsType> {
|
|||
|
||||
if (item.type === 'message') {
|
||||
return (
|
||||
<Message {...this.props} {...item.data} i18n={i18n} theme={theme} />
|
||||
<Message
|
||||
{...this.props}
|
||||
{...item.data}
|
||||
i18n={i18n}
|
||||
theme={theme}
|
||||
renderingContext="conversation/TimelineItem"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue