This commit is contained in:
PhilReact 2024-09-22 14:23:01 +03:00
parent 582265a0bd
commit 323c7b50f1

View File

@ -808,19 +808,16 @@ export const Group = ({
} }
}; };
useEffect(()=> {
if(!selectedGroup) return
getGroupOwner(selectedGroup?.groupId);
}, [selectedGroup])
useEffect(() => { useEffect(() => {
if (selectedGroup && groupOwner && groupOwner?.isOpen === false) { if (selectedGroup) {
setTriedToFetchSecretKey(false); setTriedToFetchSecretKey(false);
getSecretKey(true); getSecretKey(true);
// getGroupOwner(selectedGroup?.groupId); getGroupOwner(selectedGroup?.groupId);
} }
}, [selectedGroup, groupOwner]); }, [selectedGroup]);
// const handleNotification = async (data)=> { // const handleNotification = async (data)=> {
// try { // try {