Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit cd1aa6e

Browse files
committed
feat: user에도 channelInfo 적용
1 parent fb2eb61 commit cd1aa6e

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
export type ValueOf<T> = T[keyof T]
2+
3+
export interface ChatChannelInfo {
4+
channel: string
5+
events: { refresh: string; unread: string; send: string; join: string }
6+
needAuth: boolean
7+
}

packages/tds-widget/src/chat/types/room.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ValueOf } from './base'
1+
import { ChatChannelInfo, ValueOf } from './base'
22
import { ChatMessageInterface } from './message'
33
import { ChatUserInterface, UserType } from './user'
44

@@ -108,13 +108,7 @@ interface ChatRoomDetailRoomInterface<T = UserType> {
108108
isDirect: boolean
109109
createdAt: string
110110
privateChannel: boolean
111-
channel: ChatRoomChannelInfo
112-
}
113-
114-
interface ChatRoomChannelInfo {
115-
channel: string
116-
events: { refresh: string; unread: string; send: string; join: string }
117-
needAuth: boolean
111+
channel: ChatChannelInfo
118112
}
119113

120114
export type CreatedChatRoomInterface<

packages/tds-widget/src/chat/types/user.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ValueOf } from './base'
1+
import { ChatChannelInfo, ValueOf } from './base'
22

33
export const UserType = {
44
TRIPLE_USER: 'TRIPLE_USER',
@@ -33,6 +33,7 @@ export interface ChatUserInterface<T = UserType> {
3333
identifier: string
3434
code: string
3535
profile: ChatUserProfileInterface
36+
channel: ChatChannelInfo
3637
}
3738

3839
interface ChatUserProfileInterface {

0 commit comments

Comments
 (0)