Browse Source

Enables all recording/livestreaming notifications in sip gw mode.

j8
damencho 5 years ago
parent
commit
775c531fe7
2 changed files with 8 additions and 2 deletions
  1. 1
    1
      modules/UI/UI.js
  2. 7
    1
      react/features/recording/middleware.js

+ 1
- 1
modules/UI/UI.js View File

177
         // in case of iAmSipGateway keep local video visible
177
         // in case of iAmSipGateway keep local video visible
178
         if (!config.iAmSipGateway) {
178
         if (!config.iAmSipGateway) {
179
             VideoLayout.setLocalVideoVisible(false);
179
             VideoLayout.setLocalVideoVisible(false);
180
+            APP.store.dispatch(setNotificationsEnabled(false));
180
         }
181
         }
181
 
182
 
182
         APP.store.dispatch(setToolboxEnabled(false));
183
         APP.store.dispatch(setToolboxEnabled(false));
183
-        APP.store.dispatch(setNotificationsEnabled(false));
184
         UI.messageHandler.enablePopups(false);
184
         UI.messageHandler.enablePopups(false);
185
     }
185
     }
186
 };
186
 };

+ 7
- 1
react/features/recording/middleware.js View File

127
     case RECORDING_SESSION_UPDATED: {
127
     case RECORDING_SESSION_UPDATED: {
128
         // When in recorder mode no notifications are shown
128
         // When in recorder mode no notifications are shown
129
         // or extra sounds are also not desired
129
         // or extra sounds are also not desired
130
-        if (getState()['features/base/config'].iAmRecorder) {
130
+        // but we want to indicate those in case of sip gateway
131
+        const {
132
+            iAmRecorder,
133
+            iAmSipGateway
134
+        } = getState()['features/base/config'];
135
+
136
+        if (iAmRecorder && !iAmSipGateway) {
131
             break;
137
             break;
132
         }
138
         }
133
 
139
 

Loading…
Cancel
Save