fix white typing indicators in servers (#166)

This commit is contained in:
mochie 2025-02-27 00:42:02 +01:00 committed by thororen1234
parent c73f49a08f
commit 22bb603da1
No known key found for this signature in database

View file

@ -60,8 +60,8 @@ interface Props {
function typingUserColor(guildId: string, userId: string) {
if (!settings.store.showRoleColors) return;
if (Settings.plugins.CustomUserColors.enabled) return getCustomColorString(userId, true);
return GuildMemberStore.getMember(guildId, userId)?.colorString;
const customColor = Settings.plugins.CustomUserColors.enabled ? getCustomColorString(userId, true) : null;
return customColor ?? GuildMemberStore.getMember(guildId, userId)?.colorString;
}
const TypingUser = ErrorBoundary.wrap(function ({ user, guildId }: Props) {