diff --git a/src/equicordplugins/fullVcPfp/index.tsx b/src/equicordplugins/fullVcPfp/index.tsx index 686fff588..30fa24349 100644 --- a/src/equicordplugins/fullVcPfp/index.tsx +++ b/src/equicordplugins/fullVcPfp/index.tsx @@ -7,7 +7,7 @@ import { disableStyle, enableStyle } from "@api/Styles"; import { EquicordDevs } from "@utils/constants"; import definePlugin from "@utils/types"; -import { IconUtils, UserStore } from "@webpack/common"; +import { ChannelRTCStore, IconUtils, UserStore, VoiceStateStore } from "@webpack/common"; import style from "./style.css?managed"; @@ -29,7 +29,9 @@ export default definePlugin({ if (!className.includes("tile") || !participantUserId) return; const user = UserStore.getUser(participantUserId); - const avatarUrl = IconUtils.getUserAvatarURL(user, false, 1024); + const channelId = VoiceStateStore.getVoiceStateForUser(participantUserId)?.channelId!; + const isSpeaking = ChannelRTCStore.getSpeakingParticipants(channelId).some(p => p.user.id === participantUserId && p.speaking); + const avatarUrl = IconUtils.getUserAvatarURL(user, isSpeaking, 1024); return { "--full-res-avatar": `url(${avatarUrl})`