feat: implement fetchMe
This commit is contained in:
parent
0ea12e7f00
commit
58fe9a2eac
3 changed files with 13 additions and 3 deletions
|
@ -44,9 +44,11 @@ import type { MessageResponse, ScrollPosition, UserResponse } from '~/types/inte
|
|||
import scrollToBottom from '~/utils/scrollToBottom';
|
||||
import { generateIrcColor } from '#imports';
|
||||
|
||||
const { fetchMe } = useApi()
|
||||
|
||||
const props = defineProps<{ channelUrl: string, amount?: number, offset?: number }>();
|
||||
|
||||
const me = await fetchWithApi("/me") as UserResponse;
|
||||
const me = await fetchMe() as UserResponse;
|
||||
|
||||
const messageTimestamps = ref<Record<string, number>>({});
|
||||
const messagesType = ref<Record<string, "normal" | "grouped">>({});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue