cleanup + debugging help/quick dial
This commit is contained in:
@@ -289,8 +289,12 @@ export function ConversationProvider({ children }: { children: React.ReactNode }
|
||||
// todo: check to make sure that the other user is not the user himself, although backend should error out
|
||||
|
||||
if (otherUsers.length === 1) {
|
||||
console.log('checking if exists....');
|
||||
|
||||
const conversationDmCheck = await checkIfOnOnOneExists(otherUsers[0]._id.toString());
|
||||
|
||||
console.log(conversationDmCheck);
|
||||
|
||||
// if we found a conversation
|
||||
if (conversationDmCheck.data) {
|
||||
toast.success('already have this user...quick dialing');
|
||||
|
||||
Reference in New Issue
Block a user