Moves message details into React pane land

This commit is contained in:
Josh Perez 2022-12-21 15:44:23 -05:00 committed by GitHub
parent 3def746014
commit a80c6d89a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 501 additions and 558 deletions

View file

@ -1460,9 +1460,7 @@ export async function startApp(): Promise<void> {
// 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<void> {
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<void> {
return;
}
window.reduxActions.conversations.pushPanelForConversation(
conversation.id,
{
type: PanelType.MessageDetails,
args: { messageId: selectedMessage },
}
);
window.reduxActions.conversations.pushPanelForConversation({
type: PanelType.MessageDetails,
args: {
messageId: selectedMessage,
},
});
return;
}