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
|
// todo: check to make sure that the other user is not the user himself, although backend should error out
|
||||||
|
|
||||||
if (otherUsers.length === 1) {
|
if (otherUsers.length === 1) {
|
||||||
|
console.log('checking if exists....');
|
||||||
|
|
||||||
const conversationDmCheck = await checkIfOnOnOneExists(otherUsers[0]._id.toString());
|
const conversationDmCheck = await checkIfOnOnOneExists(otherUsers[0]._id.toString());
|
||||||
|
|
||||||
|
console.log(conversationDmCheck);
|
||||||
|
|
||||||
// if we found a conversation
|
// if we found a conversation
|
||||||
if (conversationDmCheck.data) {
|
if (conversationDmCheck.data) {
|
||||||
toast.success('already have this user...quick dialing');
|
toast.success('already have this user...quick dialing');
|
||||||
|
|||||||
@@ -46,9 +46,6 @@ export default function MainPanel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ConversationDetails({ masterConversation }: { masterConversation: MasterConversation }) {
|
function ConversationDetails({ masterConversation }: { masterConversation: MasterConversation }) {
|
||||||
console.log('selected room contents');
|
|
||||||
console.log(masterConversation);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container maxWidth={'md'}>
|
<Container maxWidth={'md'}>
|
||||||
<Grid container>
|
<Grid container>
|
||||||
|
|||||||
Reference in New Issue
Block a user