Skip to content

Commit

Permalink
fix(VoiceState): set streaming to false when the stream ended (#6992)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC committed Nov 16, 2021
1 parent ecc61f3 commit fdb09cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/structures/VoiceState.js
Expand Up @@ -83,7 +83,9 @@ class VoiceState extends Base {
this.sessionId ??= null;
}

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

0 comments on commit fdb09cb

Please sign in to comment.