wip
This commit is contained in:
@@ -18,11 +18,7 @@ export const useChatsStore = defineStore('chats', () => {
|
|||||||
const selected = ref<string[]>([])
|
const selected = ref<string[]>([])
|
||||||
|
|
||||||
const selectedChat = computed(() => {
|
const selectedChat = computed(() => {
|
||||||
const chatId = selected.value[0]
|
return chats.value.find((chat: Chat) => chat.id === selected.value[0])
|
||||||
|
|
||||||
return chats.value.find((chat: Chat) => {
|
|
||||||
return chat.id === chatId
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
function getChatInfo(chat: Chat) {
|
function getChatInfo(chat: Chat) {
|
||||||
|
|||||||
Reference in New Issue
Block a user