From 2fb549457b330133cd3142b2b03506f8b6349e0d Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Sat, 27 Dec 2025 20:47:29 -0500 Subject: [PATCH] USRBG: fix missing background in VC (#3851) --- src/plugins/usrbg/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/plugins/usrbg/index.tsx b/src/plugins/usrbg/index.tsx index 6673dd40..86f122c8 100644 --- a/src/plugins/usrbg/index.tsx +++ b/src/plugins/usrbg/index.tsx @@ -70,6 +70,14 @@ export default definePlugin({ replace: "$1.style=$self.getVoiceBackgroundStyles($1);" } ] + }, + { + find: '"VideoBackground-web"', + predicate: () => settings.store.voiceBackground, + replacement: { + match: /backgroundColor:.{0,25},\{style:(?=\i\?)/, + replace: "$&$self.userHasBackground(arguments[0]?.userId)?null:", + } } ], @@ -84,7 +92,7 @@ export default definePlugin({ }, getVoiceBackgroundStyles({ className, participantUserId }: any) { - if (className.includes("tile_")) { + if (className.includes("tile")) { if (this.userHasBackground(participantUserId)) { return { backgroundImage: `url(${this.getImageUrl(participantUserId)})`,