interface: run useEffect again if group changes
@@ -114,7 +114,6 @@ export function ChatResource(props: ChatResourceProps) {
} else {
setShowBanner(false);
}
-
} else {
const groupShared = await props.api.contacts.fetchIsAllowed(
`~${window.ship}`,
@@ -127,7 +126,7 @@ export function ChatResource(props: ChatResourceProps) {
setHasLoadedAllowed(true);
})();
- }, [groupPath]);
+ }, [groupPath, group]);
if(!graph) {
return <Loading />;
