Browse Source

Remove legacy web raise hand code

master
Bettenbuk Zoltan 6 years ago
parent
commit
50d7c1521f

+ 0
- 24
modules/UI/UI.js View File

@@ -175,30 +175,6 @@ UI.changeDisplayName = function(id, displayName) {
175 175
     VideoLayout.onDisplayNameChanged(id, displayName);
176 176
 };
177 177
 
178
-/**
179
- * Sets the "raised hand" status for a participant.
180
- *
181
- * @param {string} id - The id of the participant whose raised hand UI should
182
- * be updated.
183
- * @param {string} name - The name of the participant with the raised hand
184
- * update.
185
- * @param {boolean} raisedHandStatus - Whether the participant's hand is raised
186
- * or not.
187
- * @returns {void}
188
- */
189
-UI.setRaisedHandStatus = (id, name, raisedHandStatus) => {
190
-    VideoLayout.setRaisedHandStatus(id, raisedHandStatus);
191
-};
192
-
193
-/**
194
- * Sets the local "raised hand" status.
195
- */
196
-UI.setLocalRaisedHandStatus
197
-    = raisedHandStatus =>
198
-        VideoLayout.setRaisedHandStatus(
199
-            APP.conference.getMyUserId(),
200
-            raisedHandStatus);
201
-
202 178
 /**
203 179
  * Initialize conference UI.
204 180
  */

+ 4
- 6
modules/UI/videolayout/SmallVideo.js View File

@@ -840,12 +840,10 @@ SmallVideo.prototype.updateIndicators = function() {
840 840
                                     = { statsPopoverPosition }
841 841
                                 userID = { this.id } />
842 842
                             : null }
843
-                        { this._showRaisedHand
844
-                            ? <RaisedHandIndicator
845
-                                iconSize = { iconSize }
846
-                                participantId = { this.id }
847
-                                tooltipPosition = { tooltipPosition } />
848
-                            : null }
843
+                        <RaisedHandIndicator
844
+                            iconSize = { iconSize }
845
+                            participantId = { this.id }
846
+                            tooltipPosition = { tooltipPosition } />
849 847
                         { this._showDominantSpeaker
850 848
                             ? <DominantSpeakerIndicator
851 849
                                 iconSize = { iconSize }

+ 0
- 16
modules/UI/videolayout/VideoLayout.js View File

@@ -672,22 +672,6 @@ const VideoLayout = {
672 672
         }
673 673
     },
674 674
 
675
-    /**
676
-     * Sets the "raised hand" status for a participant identified by 'id'.
677
-     */
678
-    setRaisedHandStatus(id, raisedHandStatus) {
679
-        const video
680
-            = APP.conference.isLocalId(id)
681
-                ? localVideoThumbnail : remoteVideos[id];
682
-
683
-        if (video) {
684
-            video.showRaisedHandIndicator(raisedHandStatus);
685
-            if (raisedHandStatus) {
686
-                video.showDominantSpeakerIndicator(false);
687
-            }
688
-        }
689
-    },
690
-
691 675
     /**
692 676
      * On dominant speaker changed event.
693 677
      *

+ 0
- 16
react/features/base/participants/middleware.js View File

@@ -40,7 +40,6 @@ import {
40 40
 import {
41 41
     getAvatarURLByParticipantId,
42 42
     getLocalParticipant,
43
-    getParticipantById,
44 43
     getParticipantCount,
45 44
     getParticipantDisplayName
46 45
 } from './functions';
@@ -332,21 +331,6 @@ function _participantJoinedOrUpdated({ getState }, next, action) {
332 331
                     'raisedHand',
333 332
                     raisedHand);
334 333
         }
335
-
336
-        if (typeof APP === 'object') {
337
-            if (local) {
338
-                APP.UI.onLocalRaiseHandChanged(raisedHand);
339
-                APP.UI.setLocalRaisedHandStatus(raisedHand);
340
-            } else {
341
-                const remoteParticipant = getParticipantById(getState(), id);
342
-
343
-                remoteParticipant
344
-                    && APP.UI.setRaisedHandStatus(
345
-                        remoteParticipant.id,
346
-                        remoteParticipant.name,
347
-                        raisedHand);
348
-            }
349
-        }
350 334
     }
351 335
 
352 336
     // Notify external listeners of potential avatarURL changes.

Loading…
Cancel
Save