payload formatted
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { create } from "zustand";
|
import { create } from "zustand";
|
||||||
import { Socket } from "socket.io-client";
|
import { Socket } from "socket.io-client";
|
||||||
import { BackendUser, User } from "@/types";
|
|
||||||
|
|
||||||
// --- TYPE DEFINITIONS ---
|
// --- TYPE DEFINITIONS ---
|
||||||
|
|
||||||
@@ -262,9 +261,9 @@ export const useVoiceStore = create<VoiceState & VoiceActions>((set, get) => {
|
|||||||
|
|
||||||
// *** THE FIX: Send user credentials with the join request ***
|
// *** THE FIX: Send user credentials with the join request ***
|
||||||
socket.emit("join-voicechannel", {
|
socket.emit("join-voicechannel", {
|
||||||
channelId,
|
userId: userId,
|
||||||
userId,
|
userToken: token,
|
||||||
token,
|
voiceChannelId: channelId,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
leaveChannel: () => {
|
leaveChannel: () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user