(list: any = [])
| 390 | } |
| 391 | |
| 392 | const toChatLogHistoryItemList = (list: any = []): ChatLogHistoryItem[] => { |
| 393 | const records: Array<ChatLogHistoryItem> = [] |
| 394 | for (let i = 0; i < list.length; i++) { |
| 395 | const record = toChatLogHistoryItem(list[i]) |
| 396 | if (record) { |
| 397 | records.push(record) |
| 398 | } |
| 399 | } |
| 400 | return records |
| 401 | } |
| 402 | |
| 403 | export const chatApi = { |
| 404 | toChatInfo: (data?: any): ChatInfo | undefined => { |
no test coverage detected