idiota
This commit is contained in:
@@ -82,11 +82,7 @@ function ParticipantsBar({
|
|||||||
const { group_id } = msg;
|
const { group_id } = msg;
|
||||||
console.log('Added to group: ', msg);
|
console.log('Added to group: ', msg);
|
||||||
console.log('Current participants: ', participants);
|
console.log('Current participants: ', participants);
|
||||||
console.log(
|
console.log('CURRENTCONTACT: ', currentContact);
|
||||||
'HDDSLKDFLDK: ',
|
|
||||||
currentContact?.conversation_id,
|
|
||||||
currentContact?.user_id,
|
|
||||||
);
|
|
||||||
if (
|
if (
|
||||||
msg.group_id == currentContact?.conversation_id &&
|
msg.group_id == currentContact?.conversation_id &&
|
||||||
msg.user_id == user?.user_id
|
msg.user_id == user?.user_id
|
||||||
@@ -131,7 +127,6 @@ function ParticipantsBar({
|
|||||||
});
|
});
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
socket?.off('added to group');
|
|
||||||
socket?.off('left group');
|
socket?.off('left group');
|
||||||
};
|
};
|
||||||
}, [contact, participants]);
|
}, [contact, participants]);
|
||||||
|
|||||||
Reference in New Issue
Block a user