(opts)
| 44 | |
| 45 | export const conversationAPI: ConversationAPI = { |
| 46 | async list(opts) { |
| 47 | const { limit = 20, offset = 0 } = opts ?? {}; |
| 48 | const { conversations } = getStore().getState(); |
| 49 | return conversations.slice(offset, offset + limit); |
| 50 | }, |
| 51 | |
| 52 | async get(id) { |
| 53 | return findConversation(id); |
nothing calls this directly
no test coverage detected