one page for easier state management

This commit is contained in:
talksik
2022-05-28 16:29:23 -05:00
parent cf10a4d1e4
commit 7ae7d7fa36
5 changed files with 265 additions and 254 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ export const createOneOnOneConversation = async (
otherUserId: string,
myUserId: string,
): Promise<string | undefined> => {
const newConversation = new Conversation(myUserId, [myUserId, otherUserId]);
const newConversation = new Conversation(myUserId, [myUserId, otherUserId], null);
try {
const newDoc = await addDoc(db.conversations, newConversation);