Merge pull request #11417 from KDSBrowne/bbb-11097
Skip publishing poll annotation to whiteboard if presentation swapped
This commit is contained in:
commit
d686f0b04d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user