mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
fix: consolidate audited dev updates
This commit is contained in:
1 parent
568b8fd8be
commit
0a552f7ee8
58 files changed
+1930
-132
No files matched your search
@@ -46,6 +46,7 @@ interface UseWebClientConnectionOptions {
|
||||
saveNickname: (nickname: string) => void;
|
||||
showToast: (message: string) => void;
|
||||
t: (key: string) => string;
|
||||
beforeConnect?: () => void;
|
||||
}
|
||||
|
||||
export function useWebClientConnection({
|
||||
@@ -77,6 +78,7 @@ export function useWebClientConnection({
|
||||
saveNickname,
|
||||
showToast,
|
||||
t,
|
||||
beforeConnect,
|
||||
}: UseWebClientConnectionOptions) {
|
||||
const canJoin = computed(() => Boolean(
|
||||
initialized.value
|
||||
@@ -90,6 +92,7 @@ export function useWebClientConnection({
|
||||
|
||||
function doConnect(): void {
|
||||
if (!canJoin.value || isConnecting.value) return;
|
||||
beforeConnect?.();
|
||||
clearError();
|
||||
nickname.value = nickname.value.trim();
|
||||
saveNickname(nickname.value);
|
||||
|
||||
Reference in new issue
Block a user