|
@@ -14,6 +14,7 @@ import {
|
14
|
14
|
NOTIFICATION_TIMEOUT_TYPE,
|
15
|
15
|
RAISE_HAND_NOTIFICATION_ID
|
16
|
16
|
} from '../../notifications/constants';
|
|
17
|
+import { open as openParticipantsPane } from '../../participants-pane/actions';
|
17
|
18
|
import { isForceMuted } from '../../participants-pane/functions';
|
18
|
19
|
import { CALLING, INVITED } from '../../presence-status/constants';
|
19
|
20
|
import { RAISE_HAND_SOUND_ID } from '../../reactions/constants';
|
|
@@ -783,10 +784,19 @@ function _raiseHandUpdated({ dispatch, getState }: IStore, conference: IJitsiCon
|
783
|
784
|
|| isForceMuted(participant, MEDIA_TYPE.VIDEO, state);
|
784
|
785
|
}
|
785
|
786
|
|
786
|
|
- const action = shouldDisplayAllowAction ? {
|
787
|
|
- customActionNameKey: [ 'notify.allowAction' ],
|
788
|
|
- customActionHandler: [ () => dispatch(approveParticipant(participantId)) ]
|
789
|
|
- } : {};
|
|
787
|
+ let action;
|
|
788
|
+
|
|
789
|
+ if (shouldDisplayAllowAction) {
|
|
790
|
+ action = {
|
|
791
|
+ customActionNameKey: [ 'notify.allowAction' ],
|
|
792
|
+ customActionHandler: [ () => dispatch(approveParticipant(participantId)) ]
|
|
793
|
+ };
|
|
794
|
+ } else {
|
|
795
|
+ action = {
|
|
796
|
+ customActionNameKey: [ 'notify.viewParticipants' ],
|
|
797
|
+ customActionHandler: [ () => dispatch(openParticipantsPane()) ]
|
|
798
|
+ };
|
|
799
|
+ }
|
790
|
800
|
|
791
|
801
|
if (raisedHandTimestamp) {
|
792
|
802
|
let notificationTitle;
|
|
@@ -810,7 +820,7 @@ function _raiseHandUpdated({ dispatch, getState }: IStore, conference: IJitsiCon
|
810
|
820
|
concatText: true,
|
811
|
821
|
uid: RAISE_HAND_NOTIFICATION_ID,
|
812
|
822
|
...action
|
813
|
|
- }, shouldDisplayAllowAction ? NOTIFICATION_TIMEOUT_TYPE.MEDIUM : NOTIFICATION_TIMEOUT_TYPE.SHORT));
|
|
823
|
+ }, NOTIFICATION_TIMEOUT_TYPE.MEDIUM));
|
814
|
824
|
dispatch(playSound(RAISE_HAND_SOUND_ID));
|
815
|
825
|
}
|
816
|
826
|
}
|