Skip to content

Commit

Permalink
Merge pull request #2666 from daily-co/vp-eng-1234-fix-record-being-s…
Browse files Browse the repository at this point in the history
…et-to-true-for-remote

Vp eng 1234 fix record being set to true for remote
  • Loading branch information
vipyne authored Feb 25, 2021
2 parents bceee20 + d1174d6 commit c92a211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -2135,7 +2135,7 @@ export default class DailyIframe extends EventEmitter {
if (!prevP) {
return;
}
if (thisP[key] === false && prevP[key] !== thisP[key]) {
if (!thisP.local && thisP[key] === false && prevP[key] !== thisP[key]) {
try {
this.emit(DAILY_EVENT_RECORDING_STOPPED, {
action: DAILY_EVENT_RECORDING_STOPPED,
Expand All @@ -2151,7 +2151,7 @@ export default class DailyIframe extends EventEmitter {
if (!prevP) {
return;
}
if (thisP[key] === true && prevP[key] !== thisP[key]) {
if (!thisP.local && thisP[key] === true && prevP[key] !== thisP[key]) {
try {
this.emit(DAILY_EVENT_RECORDING_STARTED, {
action: DAILY_EVENT_RECORDING_STARTED,
Expand Down

0 comments on commit c92a211

Please sign in to comment.