diff --git a/ts/background.ts b/ts/background.ts index 1446710cf50b..57347380c0ef 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -1460,9 +1460,7 @@ export async function startApp(): Promise { // Send Escape to active conversation so it can close panels if (conversation && key === 'Escape') { - window.reduxActions.conversations.popPanelForConversation( - conversation.id - ); + window.reduxActions.conversations.popPanelForConversation(); event.preventDefault(); event.stopPropagation(); return; @@ -1536,12 +1534,9 @@ export async function startApp(): Promise { shiftKey && (key === 'm' || key === 'M') ) { - window.reduxActions.conversations.pushPanelForConversation( - conversation.id, - { - type: PanelType.AllMedia, - } - ); + window.reduxActions.conversations.pushPanelForConversation({ + type: PanelType.AllMedia, + }); event.preventDefault(); event.stopPropagation(); return; @@ -1634,14 +1629,12 @@ export async function startApp(): Promise { return; } - window.reduxActions.conversations.pushPanelForConversation( - conversation.id, - { - type: PanelType.MessageDetails, - args: { messageId: selectedMessage }, - } - ); - + window.reduxActions.conversations.pushPanelForConversation({ + type: PanelType.MessageDetails, + args: { + messageId: selectedMessage, + }, + }); return; } diff --git a/ts/components/CompositionArea.tsx b/ts/components/CompositionArea.tsx index 08185d600ba6..139711e7ea1d 100644 --- a/ts/components/CompositionArea.tsx +++ b/ts/components/CompositionArea.tsx @@ -462,7 +462,7 @@ export function CompositionArea({ recentStickers={recentStickers} clearInstalledStickerPack={clearInstalledStickerPack} onClickAddPack={() => - pushPanelForConversation(conversationId, { + pushPanelForConversation({ type: PanelType.StickerManager, }) } diff --git a/ts/components/conversation/ConversationHeader.tsx b/ts/components/conversation/ConversationHeader.tsx index 3b19fac5cb4f..92fe9ebe2a58 100644 --- a/ts/components/conversation/ConversationHeader.tsx +++ b/ts/components/conversation/ConversationHeader.tsx @@ -154,12 +154,12 @@ export class ConversationHeader extends React.Component { } private renderBackButton(): ReactNode { - const { i18n, id, popPanelForConversation, showBackButton } = this.props; + const { i18n, popPanelForConversation, showBackButton } = this.props; return (