|
|
|
@ -85,10 +85,14 @@ function makeRenderMoreUsers(users: User[]) {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function handleClickAvatar(event: React.MouseEvent<HTMLElement, MouseEvent>) {
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default definePlugin({
|
|
|
|
|
name: "WhoReacted",
|
|
|
|
|
description: "Renders the Avatars of reactors",
|
|
|
|
|
authors: [Devs.Ven],
|
|
|
|
|
authors: [Devs.Ven, Devs.KannaDev],
|
|
|
|
|
|
|
|
|
|
patches: [{
|
|
|
|
|
find: ",reactionRef:",
|
|
|
|
@ -132,15 +136,17 @@ export default definePlugin({
|
|
|
|
|
<div
|
|
|
|
|
style={{ marginLeft: "0.5em", transform: "scale(0.9)" }}
|
|
|
|
|
>
|
|
|
|
|
<UserSummaryItem
|
|
|
|
|
users={users}
|
|
|
|
|
guildId={ChannelStore.getChannel(message.channel_id)?.guild_id}
|
|
|
|
|
renderIcon={false}
|
|
|
|
|
max={5}
|
|
|
|
|
showDefaultAvatarsForNullUsers
|
|
|
|
|
showUserPopout
|
|
|
|
|
renderMoreUsers={makeRenderMoreUsers(users)}
|
|
|
|
|
/>
|
|
|
|
|
<div onClick={handleClickAvatar}>
|
|
|
|
|
<UserSummaryItem
|
|
|
|
|
users={users}
|
|
|
|
|
guildId={ChannelStore.getChannel(message.channel_id)?.guild_id}
|
|
|
|
|
renderIcon={false}
|
|
|
|
|
max={5}
|
|
|
|
|
showDefaultAvatarsForNullUsers
|
|
|
|
|
showUserPopout
|
|
|
|
|
renderMoreUsers={makeRenderMoreUsers(users)}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|