fix: restore missing logo and fix mobile space icon URLs

Restore logo.png lost during fast-forward merge and replace broken
resolveAssetUrl pattern in MobileSpacesScreen with proven desktop logic.
This commit is contained in:
Jannis Braun
2026-03-17 16:16:09 +01:00
parent f505f6578b
commit e3e3eb82ff
2 changed files with 3 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 701 KiB

@@ -6,7 +6,6 @@ import { useVoiceStore } from '../../stores/voiceStore';
import { useAuthStore } from '../../stores/authStore';
import { useNavigate } from 'react-router-dom';
import { getSpaceGradient } from '../../utils/gradients';
import { resolveAssetUrl } from '../../utils/assetUrls';
import { hasPermissionBit, PermissionBits } from '../../utils/permissions';
import type { Channel } from '@backspace/shared';
@@ -195,7 +194,9 @@ export function MobileSpacesScreen() {
const isSelected = space.id === selectedSpaceId;
const hasUnread = spaceHasUnread(space.id);
const iconUrl = space.icon
? resolveAssetUrl(space.icon, space._instanceOrigin) ?? `/api/uploads/${space.icon}`
? (space.icon.startsWith('http') || space.icon.startsWith('/')
? space.icon
: `/api/uploads/${space.icon}`)
: null;
const grad = getSpaceGradient(space.id, space.name, space.avatarColor);