From db480dff17e45791b333056d5f4a33ab210b2aee Mon Sep 17 00:00:00 2001 From: Haze <709547807@qq.com> Date: Mon, 16 Mar 2026 18:17:59 +0800 Subject: [PATCH] fix(channels): update channel name assignment to use CHANNEL_NAMES for better clarity (#531) --- src/stores/channels.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/channels.ts b/src/stores/channels.ts index c38e37021..f5d87aaaf 100644 --- a/src/stores/channels.ts +++ b/src/stores/channels.ts @@ -5,7 +5,7 @@ import { create } from 'zustand'; import { hostApiFetch } from '@/lib/host-api'; import { useGatewayStore } from './gateway'; -import type { Channel, ChannelType } from '../types/channel'; +import { CHANNEL_NAMES, type Channel, type ChannelType } from '../types/channel'; interface AddChannelParams { type: ChannelType; @@ -109,7 +109,7 @@ export const useChannelsStore = create((set, get) => ({ channels.push({ id: `${channelId}-${primaryAccount?.accountId || 'default'}`, type: channelId as ChannelType, - name: primaryAccount?.name || channelId, + name: primaryAccount?.name || CHANNEL_NAMES[channelId as ChannelType] || channelId, status, accountId: primaryAccount?.accountId, error: