Skip to content

Commit 4f71c61

Browse files
authored
Merge branch 'master' into RTCStatsCollector
2 parents b1be538 + 9e28f50 commit 4f71c61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/RTC/JitsiLocalTrack.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,8 @@ export default class JitsiLocalTrack extends JitsiTrack {
10971097
await this.conference._removeLocalTrackFromPc(this);
10981098
}
10991099

1100+
const isMuted = this.isMuted();
1101+
11001102
if (hasAudioMixEffect) {
11011103
this._stopStreamEffect();
11021104
}
@@ -1153,6 +1155,10 @@ export default class JitsiLocalTrack extends JitsiTrack {
11531155
this._startStreamEffect(this._streamEffect);
11541156
}
11551157

1158+
if (isMuted) {
1159+
this._setMuted(true);
1160+
}
1161+
11561162
if (hasConference) {
11571163
logger.debug(`Adding track ${this} to conference`);
11581164
await this.conference._addLocalTrackToPc(this);

0 commit comments

Comments
 (0)