Browse Source

feat: Drop HIDE_KICK_BUTTON_FOR_GUESTS setting.

The main config contains disableRemoteMute and remoteVideoMenu: { disableKick: true} options, which can be used.
master
damencho 4 years ago
parent
commit
4b8aae90e0

+ 0
- 5
interface_config.js View File

239
      */
239
      */
240
     VIDEO_QUALITY_LABEL_DISABLED: false,
240
     VIDEO_QUALITY_LABEL_DISABLED: false,
241
 
241
 
242
-    /**
243
-     * When enabled, the kick participant button will not be presented for users without a JWT
244
-     */
245
-    // HIDE_KICK_BUTTON_FOR_GUESTS: false,
246
-
247
     /**
242
     /**
248
      * How many columns the tile view can expand to. The respected range is
243
      * How many columns the tile view can expand to. The respected range is
249
      * between 1 and 5.
244
      * between 1 and 5.

+ 2
- 25
react/features/remote-video-menu/components/web/KickButton.js View File

4
 
4
 
5
 import { translate } from '../../../base/i18n';
5
 import { translate } from '../../../base/i18n';
6
 import { IconKick } from '../../../base/icons';
6
 import { IconKick } from '../../../base/icons';
7
-import { connect } from '../../../base/redux';
8
 import AbstractKickButton, {
7
 import AbstractKickButton, {
9
     type Props
8
     type Props
10
 } from '../AbstractKickButton';
9
 } from '../AbstractKickButton';
42
      * @returns {ReactElement}
41
      * @returns {ReactElement}
43
      */
42
      */
44
     render() {
43
     render() {
45
-        const { participantID, t, visible } = this.props;
46
-
47
-        if (!visible) {
48
-            return null;
49
-        }
44
+        const { participantID, t } = this.props;
50
 
45
 
51
         return (
46
         return (
52
             <RemoteVideoMenuButton
47
             <RemoteVideoMenuButton
61
 
56
 
62
     _handleClick: () => void
57
     _handleClick: () => void
63
 }
58
 }
64
-
65
-/**
66
- * Maps (parts of) the redux state to {@link KickButton}'s React {@code Component}
67
- * props.
68
- *
69
- * @param {Object} state - The redux store/state.
70
- * @private
71
- * @returns {Object}
72
- */
73
-function _mapStateToProps(state: Object) {
74
-    const shouldHide = interfaceConfig.HIDE_KICK_BUTTON_FOR_GUESTS && state['features/base/jwt'].isGuest;
75
-
76
-    return {
77
-        visible: !shouldHide
78
-    };
79
-}
80
-
81
-export default translate(connect(_mapStateToProps)(KickButton));
82
-
59
+export default translate(KickButton);

Loading…
Cancel
Save