Skip to content

Commit fdb09cb

Browse files
authoredNov 16, 2021
fix(VoiceState): set streaming to false when the stream ended (#6992)
1 parent ecc61f3 commit fdb09cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/structures/VoiceState.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ class VoiceState extends Base {
8383
this.sessionId ??= null;
8484
}
8585

86-
if ('self_stream' in data) {
86+
// The self_stream is property is omitted if false, check for another property
87+
// here to avoid incorrectly clearing this when partial data is specified
88+
if ('self_video' in data) {
8789
/**
8890
* Whether this member is streaming using "Screen Share"
8991
* @type {boolean}

0 commit comments

Comments
 (0)
Please sign in to comment.