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(() => {
if (selectedGroup && groupOwner && groupOwner?.isOpen === false) {
if (selectedGroup) {
setTriedToFetchSecretKey(false);
getSecretKey(true);
// getGroupOwner(selectedGroup?.groupId);
getGroupOwner(selectedGroup?.groupId);
}
}, [selectedGroup, groupOwner]);
}, [selectedGroup]);
// const handleNotification = async (data)=> {
// try {