mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
Merge pull request #4459 from urbit/la/fix-434
interface: ensure that we display the correct ship name and do not retain stale state
This commit is contained in:
commit
ddeb7eec94
@ -114,7 +114,6 @@ export function ChatResource(props: ChatResourceProps) {
|
|||||||
} else {
|
} else {
|
||||||
setShowBanner(false);
|
setShowBanner(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
const groupShared = await props.api.contacts.fetchIsAllowed(
|
const groupShared = await props.api.contacts.fetchIsAllowed(
|
||||||
`~${window.ship}`,
|
`~${window.ship}`,
|
||||||
@ -127,7 +126,7 @@ export function ChatResource(props: ChatResourceProps) {
|
|||||||
|
|
||||||
setHasLoadedAllowed(true);
|
setHasLoadedAllowed(true);
|
||||||
})();
|
})();
|
||||||
}, [groupPath]);
|
}, [groupPath, group]);
|
||||||
|
|
||||||
if(!graph) {
|
if(!graph) {
|
||||||
return <Loading />;
|
return <Loading />;
|
||||||
|
@ -270,7 +270,7 @@ export const MessageWithSigil = (props) => {
|
|||||||
};
|
};
|
||||||
const timer = setTimeout(() => resetDisplay(), 800);
|
const timer = setTimeout(() => resetDisplay(), 800);
|
||||||
return () => clearTimeout(timer);
|
return () => clearTimeout(timer);
|
||||||
}, [displayName]);
|
}, [shipName, displayName]);
|
||||||
|
|
||||||
const img = contact?.avatar && !hideAvatars ? (
|
const img = contact?.avatar && !hideAvatars ? (
|
||||||
<BaseImage
|
<BaseImage
|
||||||
|
Loading…
Reference in New Issue
Block a user