Skip to content

Commit 6f48833

Browse files
committed
Pick icons without baked-in unread dots when syncing
1 parent 0fa30fa commit 6f48833

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/syncIcons.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,13 @@ const iconMetadata = z
137137
}))
138138
// As we don't currently perform optical scaling, we only want the 24px
139139
// icons or those which are explicitly indicated in their name to be
140-
// designed for a smaller size. We also don't want placeholders.
140+
// designed for a smaller size. We also don't want placeholders or icons
141+
// with a baked-in unread messages dot.
141142
.filter(
142-
({ name, properties: { Size: size } }) =>
143+
({ name, properties: { Size: size, Unread: unread } }) =>
143144
(size === "24" || name.includes(`${size}x${size}`)) &&
144-
name !== "Icon Placeholder",
145+
name !== "Icon Placeholder" &&
146+
unread !== "True",
145147
);
146148
for (const { componentSetId, name } of components) {
147149
if (!name) {

0 commit comments

Comments
 (0)