Skip to content

Commit

Permalink
Merge pull request #2006 from holium/RE-329-chat-crash-on-backing
Browse files Browse the repository at this point in the history
Fix chat back button causing blank view
  • Loading branch information
gdbroman authored Aug 21, 2023
2 parents a9b4bcb + 37b1556 commit 1a75cf3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/renderer/apps/Courier/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
3 changes: 0 additions & 3 deletions app/src/renderer/stores/chat.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a75cf3

Please sign in to comment.