You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.js 461B

123456789101112131415161718
  1. import getRoomName from '../base/config/getRoomName';
  2. import { downloadJSON } from '../base/util/downloadJSON';
  3. /**
  4. * Create an action for saving the conference logs.
  5. *
  6. * @returns {Function}
  7. */
  8. export function saveLogs() {
  9. return (dispatch, getState) => {
  10. const logs = getState()['features/base/connection'].connection.getLogs();
  11. const roomName = getRoomName() || '';
  12. downloadJSON(logs, `meetlog-${roomName}.json`);
  13. };
  14. }