您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AbstractE2EELabel.js 588B

123456789101112131415161718192021222324252627282930
  1. // @flow
  2. export type Props = {
  3. /**
  4. * True if the label needs to be rendered, false otherwise.
  5. */
  6. _showLabel: boolean,
  7. /**
  8. * Invoked to obtain translated strings.
  9. */
  10. t: Function
  11. };
  12. /**
  13. * Maps (parts of) the redux state to the associated props of this {@code Component}.
  14. *
  15. * @param {Object} state - The redux state.
  16. * @private
  17. * @returns {Props}
  18. */
  19. export function _mapStateToProps(state: Object) {
  20. const participants = state['features/base/participants'];
  21. return {
  22. _showLabel: participants.every(p => p.e2eeEnabled)
  23. };
  24. }