diff --git a/packages/desktop/src/pages/Home/index.tsx b/packages/desktop/src/pages/Home/index.tsx index 61b0931..7e2a15f 100644 --- a/packages/desktop/src/pages/Home/index.tsx +++ b/packages/desktop/src/pages/Home/index.tsx @@ -32,8 +32,7 @@ export default function Home() { {/* main content */} - {/* {renderMainContent()} */} - + {renderMainContent()} {/* */} diff --git a/packages/desktop/src/pages/Home/newConvo/index.tsx b/packages/desktop/src/pages/Home/newConvo/index.tsx index 7bd3e13..8ac5ed4 100644 --- a/packages/desktop/src/pages/Home/newConvo/index.tsx +++ b/packages/desktop/src/pages/Home/newConvo/index.tsx @@ -101,6 +101,17 @@ export default function NewConvo() { ); } + const createConvo = () => { + // consolidate the user Ids into an array + // make sure that there are no duplicates + console; + // IF it's a one on one chat + // check backend with one route if there is an existing conversation + console; + // create a conversation object in db with two members, me and this other person + // IF it's a group convo/room/channel, create a channel with these people + }; + return (