Переглянути джерело

Enables all recording/livestreaming notifications in sip gw mode.

master
damencho 5 роки тому
джерело
коміт
775c531fe7
2 змінених файлів з 8 додано та 2 видалено
  1. 1
    1
      modules/UI/UI.js
  2. 7
    1
      react/features/recording/middleware.js

+ 1
- 1
modules/UI/UI.js Переглянути файл

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

+ 7
- 1
react/features/recording/middleware.js Переглянути файл

@@ -127,7 +127,13 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
127 127
     case RECORDING_SESSION_UPDATED: {
128 128
         // When in recorder mode no notifications are shown
129 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 137
             break;
132 138
         }
133 139
 

Завантаження…
Відмінити
Зберегти