From 37b1556f5939facb98e30bfe17f4e87c5aa0538c Mon Sep 17 00:00:00 2001 From: gdbroman <99gustaf@gmail.com> Date: Wed, 16 Aug 2023 17:36:21 -0600 Subject: [PATCH] Fix chat back button causing blank screen --- app/src/renderer/apps/Courier/app.tsx | 2 +- app/src/renderer/stores/chat.store.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/renderer/apps/Courier/app.tsx b/app/src/renderer/apps/Courier/app.tsx index e94fe04358..f9612c8916 100644 --- a/app/src/renderer/apps/Courier/app.tsx +++ b/app/src/renderer/apps/Courier/app.tsx @@ -12,7 +12,7 @@ import { ChatLog } from './views/ChatLog/ChatLog'; import { CreateNewChat } from './views/CreateNewChat/CreateNewChat'; import { Inbox } from './views/Inbox/Inbox'; -export const CourierAppPresenter = () => { +const CourierAppPresenter = () => { const { clearInnerNavigation } = useTrayApps(); const { chatStore } = useShipStore(); diff --git a/app/src/renderer/stores/chat.store.ts b/app/src/renderer/stores/chat.store.ts index 8aaffab8e4..618746ab3b 100644 --- a/app/src/renderer/stores/chat.store.ts +++ b/app/src/renderer/stores/chat.store.ts @@ -243,9 +243,6 @@ export const ChatStore = types self.inbox.find((chat) => chat.path === path) ); yield ChatIPC.resyncPathIfNeeded(path); - if (self.subroute === 'inbox') { - self.subroute = 'chat'; - } self.chatLoader.set('loaded'); }), togglePinned: flow(function* (path: string, pinned: boolean) {