boilerplate

This commit is contained in:
talksik
2022-04-03 05:10:35 -04:00
parent 2d8f1518a8
commit 362a6db698
2 changed files with 12 additions and 2 deletions
+1 -2
View File
@@ -32,8 +32,7 @@ export default function Home() {
{/* main content */}
{/* {renderMainContent()} */}
<NewConvo />
{renderMainContent()}
</div>
{/* <SelectedConversation /> */}
@@ -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 (
<div className="flex flex-col">
<div className="flex flex-row">