Strencher / BetterDiscordStuff

A collection of my BetterDiscord plugins
https://strencher.github.io/BetterDiscordStuff/
366 stars 226 forks source link

ShowAllActivities is broken #375

Closed VoidedGorilla closed 9 months ago

VoidedGorilla commented 11 months ago

the plugin is broken, for me it just shows a bar with 2 dots under profiles. image

OsmanErenN commented 10 months ago

+

l0rdsami commented 10 months ago

same here

fowlis commented 10 months ago

same here

Your comment doesn't help the issue, nor does it make Strencher fix the plugin any quicker.

ezgif com-resize

l0rdsami commented 10 months ago

image Line 509: const [UserActivityModule, method] = Webpack$1.getMangled((m) => m?.toString?.().includes("onOpenGameProfile:"));

Miniontoby commented 10 months ago

Here is a fix:

Replace the lines 312 to 314 FROM:

    const activities = useStateFromStoresArray([PresenceStore], () => {
        return PresenceStore.getActivities(user.id).filter((ac) => ac.type !== 4);
    });

TO:

    const activities = useMemo(() => {
        return PresenceStore.getActivities(user.id).filter((ac) => ac.type !== 4);
    }, [PresenceStore, user]);
VoidedGorilla commented 10 months ago

Here is a fix:

Replace the lines 312 to 314 FROM:

    const activities = useStateFromStoresArray([PresenceStore], () => {
        return PresenceStore.getActivities(user.id).filter((ac) => ac.type !== 4);
    });

TO:

    const activities = useMemo(() => {
        return PresenceStore.getActivities(user.id).filter((ac) => ac.type !== 4);
    }, [PresenceStore, user]);

this worked, thank you!