fix(VoiceState): set streaming to false when the stream ended (#6992)

This commit is contained in:
SpaceEEC
2021-11-16 18:40:19 +01:00
committed by GitHub
parent ecc61f3c74
commit fdb09cbe03

View File

@@ -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}