瀏覽代碼

chore(replace-participant) Send `readyToClose` event when a replaced participant is kicked

- the embedding app can decide to dispose the iframe in this case
master
hmuresan 4 年之前
父節點
當前提交
38b14c5d62
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      conference.js

+ 4
- 0
conference.js 查看文件

2186
                     id: localParticipant.id,
2186
                     id: localParticipant.id,
2187
                     isReplaced
2187
                     isReplaced
2188
                 }));
2188
                 }));
2189
+
2190
+                // we send readyToClose when kicked participant is replace so that
2191
+                // embedding app can choose to dispose the iframe API on the handler.
2192
+                APP.API.notifyReadyToClose();
2189
             }
2193
             }
2190
             APP.store.dispatch(kickedOut(room, participant));
2194
             APP.store.dispatch(kickedOut(room, participant));
2191
         });
2195
         });

Loading…
取消
儲存