diff --git a/bun.lockb b/bun.lockb index a6455de..a0bcbcd 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/components/ChatList.vue b/src/components/ChatList.vue index 8bb7e7c..d7de7e4 100644 --- a/src/components/ChatList.vue +++ b/src/components/ChatList.vue @@ -220,17 +220,12 @@ const addChannel = () => { async function channelSelect(channelId: string) { logger.info(`Do action for channel '${channelId}'`); - const channel = await pool.getChannel(channelId); if (!channel) return; if (channel.ChannelType == "Voice") { await voice.connectToChannel(channelId); } - - - - /*const channel = servers.getDetailsOfChannel(channelId); if (!channel) return; @@ -240,8 +235,8 @@ async function channelSelect(channelId: string) { }*/ } -function channelDelete(channelId: string) { - servers.deleteChannel(channelId); +async function channelDelete(channelId: string) { + await servers.deleteChannel(channelId); } diff --git a/src/components/UserBar.vue b/src/components/UserBar.vue index 779c76e..4a917a8 100644 --- a/src/components/UserBar.vue +++ b/src/components/UserBar.vue @@ -49,6 +49,7 @@ {{ voice.activeChannel?.Name }} + {{ sessionTimerStore.sessionTimer }} Connected Connecting... @@ -65,10 +66,12 @@ import { useMe } from "@/store/meStore"; import { useSystemStore } from "@/store/systemStore"; import ArgonAvatar from "./ArgonAvatar.vue"; import { useVoice } from "@/store/voiceStore"; +import { useSessionTimer } from '@/store/sessionTimer' const me = useMe(); const sys = useSystemStore(); const voice = useVoice(); +const sessionTimerStore = useSessionTimer()