Skip to content

Commit 2dd7bf1

Browse files
committed
add voice state to network layer context
1 parent 5bbab90 commit 2dd7bf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/layers/Network/logic/connection.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type ConnectionState = {
1515
connections: Map<string, DataConnection>;
1616
voiceStreams: Map<string, MediaStream>;
1717
disconnect: () => void;
18+
voice: boolean;
1819
setVoice: (v: boolean) => void;
1920
} & Pick<Channels, "useChannel">;
2021

@@ -133,6 +134,7 @@ export const useConnection = (
133134
connections,
134135
voiceStreams,
135136
useChannel: channels.useChannel,
137+
voice,
136138
setVoice,
137139
};
138140
};

0 commit comments

Comments
 (0)