Merge pull request #11417 from KDSBrowne/bbb-11097

Skip publishing poll annotation to whiteboard if presentation swapped
This commit is contained in:
Anton Georgiev 2021-02-18 13:26:08 -05:00 committed by GitHub
commit d686f0b04d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,10 @@ import PollService from '/imports/ui/components/poll/service';
import { injectIntl, defineMessages } from 'react-intl';
import styles from './styles';
import { prototype } from 'clipboard';
import MediaService, {
getSwapLayout,
shouldEnableSwapLayout,
} from '/imports/ui/components/media/service';
const intlMessages = defineMessages({
pollResultAria: {
@ -65,6 +69,9 @@ class PollDrawComponent extends Component {
}
componentDidMount() {
const isLayoutSwapped = getSwapLayout() && shouldEnableSwapLayout();
if (isLayoutSwapped) return;
this.pollInitialCalculation();
this.checkSizes();
}