Merge pull request #3679 from urbit/mp/groups/destroy-all-remnants

groups: remove remnant groups from recent
This commit is contained in:
matildepark 2020-10-08 14:17:14 -04:00 committed by GitHub
commit e2b1134e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,9 @@ function RecentGroups(props: { recent: string[]; associations: Associations }) {
<Box fontSize={0} px={1} py={2} color="gray">
Recent Groups
</Box>
{props.recent.slice(1, 5).map((g) => {
{props.recent.filter((e) => {
return (e in associations?.contacts);
}).slice(1, 5).map((g) => {
const assoc = associations.contacts[g];
const color = uxToHex(assoc?.metadata?.color || "0x0");
return (