WhoReacted: improve guild pfp support (#3875)
Co-authored-by: Vendicated <vendicated@riseup.net>
This commit is contained in:
parent
525f596826
commit
f7152a3982
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ import { useForceUpdater } from "@utils/react";
|
|||
import definePlugin from "@utils/types";
|
||||
import { CustomEmoji, Message, ReactionEmoji, User } from "@vencord/discord-types";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
import { ChannelStore, Constants, FluxDispatcher, React, RestAPI, useEffect, useLayoutEffect, UserSummaryItem } from "@webpack/common";
|
||||
import { ChannelStore, Constants, FluxDispatcher, React, RestAPI, useEffect, useLayoutEffect, UserStore, UserSummaryItem } from "@webpack/common";
|
||||
|
||||
const AvatarStyles = findByPropsLazy("moreUsers", "emptyUser", "avatarContainer", "clickableAvatar");
|
||||
let Scroll: any = null;
|
||||
|
|
@ -139,7 +139,7 @@ export default definePlugin({
|
|||
}, [message.id, forceUpdate]);
|
||||
|
||||
const reactions = getReactionsWithQueue(message, emoji, type);
|
||||
const users = [...reactions.values()].filter(Boolean);
|
||||
const users = Array.from(reactions, ([id]) => UserStore.getUser(id)).filter(Boolean);
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue