FullVCPFP: Use server profile pictures

This commit is contained in:
thororen1234 2026-06-08 08:57:08 -04:00
parent b3223a8a37
commit 2196fbad2f
No known key found for this signature in database

View file

@ -6,6 +6,7 @@
import { disableStyle, enableStyle } from "@api/Styles"; import { disableStyle, enableStyle } from "@api/Styles";
import { EquicordDevs } from "@utils/constants"; import { EquicordDevs } from "@utils/constants";
import { getUserAvatarUrl } from "@utils/misc";
import definePlugin from "@utils/types"; import definePlugin from "@utils/types";
import { ChannelRTCStore, ChannelStore, UserStore, VoiceStateStore } from "@webpack/common"; import { ChannelRTCStore, ChannelStore, UserStore, VoiceStateStore } from "@webpack/common";
@ -37,7 +38,7 @@ export default definePlugin({
const guildId = ChannelStore.getChannel(channelId)?.guild_id; const guildId = ChannelStore.getChannel(channelId)?.guild_id;
const isSpeaking = ChannelRTCStore.getSpeakingParticipants(channelId).some(p => p.user.id === participantUserId && p.speaking); const isSpeaking = ChannelRTCStore.getSpeakingParticipants(channelId).some(p => p.user.id === participantUserId && p.speaking);
const avatarUrl = user.getAvatarURL(guildId, 1024, isSpeaking); const avatarUrl = getUserAvatarUrl(user, guildId, isSpeaking, 1024);
return { return {
"--full-res-avatar": `url(${avatarUrl})` "--full-res-avatar": `url(${avatarUrl})`