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:
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user