Moves message details into React pane land
This commit is contained in:
parent
3def746014
commit
a80c6d89a8
20 changed files with 501 additions and 558 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue