From 362a6db698fe5aca2cb7389d1a77f64b2a85c91a Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 3 Apr 2022 05:10:35 -0400 Subject: [PATCH] boilerplate --- packages/desktop/src/pages/Home/index.tsx | 3 +-- packages/desktop/src/pages/Home/newConvo/index.tsx | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) 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 (