fix(app): accent colour not working

This commit is contained in:
Hampus Kraft 2026-02-21 15:45:12 +00:00
parent 3d0631dd85
commit 575d50807a
No known key found for this signature in database
GPG Key ID: 6090864C465A454D

View File

@ -41,15 +41,15 @@ export function getUserAccentColor(
profileAccentColor?: RawAccentColor,
fallback = DEFAULT_ACCENT_COLOR,
): string {
if (user && typeof user.avatarColor === 'number') {
return ColorUtils.int2hex(user.avatarColor);
}
const profileColor = getAccentColorHex(profileAccentColor);
if (profileColor) {
return profileColor;
}
if (user && typeof user.avatarColor === 'number') {
return ColorUtils.int2hex(user.avatarColor);
}
if (user && !user.avatar) {
return ColorUtils.int2hex(getDefaultAvatarPrimaryColor(user.id));
}