diff options
Diffstat (limited to 'src/plugins/viewIcons.tsx')
-rw-r--r-- | src/plugins/viewIcons.tsx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/viewIcons.tsx b/src/plugins/viewIcons.tsx index 8b3d31d..cff4fe6 100644 --- a/src/plugins/viewIcons.tsx +++ b/src/plugins/viewIcons.tsx @@ -80,12 +80,7 @@ function openImage(url: string) { )); } -const seen = new WeakSet(); - const UserContext: NavContextMenuPatchCallback = (children, { user, guildId }: UserContextProps) => { - if (seen.has(children)) return; - seen.add(children); - const memberAvatar = GuildMemberStore.getMember(guildId!, user.id)?.avatar || null; children.splice(1, 0, ( @@ -111,9 +106,6 @@ const UserContext: NavContextMenuPatchCallback = (children, { user, guildId }: U }; const GuildContext: NavContextMenuPatchCallback = (children, { guild: { id, icon, banner } }: GuildContextProps) => { - if (seen.has(children)) return; - seen.add(children); - if (!banner && !icon) return; // before copy id (if it exists) |