Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728
  1. import { SET_CONNECTION_STATE } from './actionTypes';
  2. // eslint-disable-next-line jsdoc/require-description-complete-sentence
  3. /**
  4. * Sets the conference connection state of the testing feature.
  5. *
  6. * @param {string} connectionState - This is the lib-jitsi-meet event name. Can
  7. * be one of (with the string values at the time of this writing):
  8. * <li>{@link JitsiConferenceEvents.CONNECTION_ESTABLISHED}
  9. * - ("conference.connectionEstablished"</li>
  10. * <li>{@link JitsiConferenceEvents.CONNECTION_INTERRUPTED}
  11. * - ("conference.connectionInterrupted")</li>
  12. * <li>{@link JitsiConferenceEvents.CONNECTION_RESTORED}
  13. * - ("conference.connectionRestored")</li>
  14. * In the reducer the value will be an empty string until first event is
  15. * received.
  16. *
  17. * @returns {{
  18. * type: SET_CONNECTION_STATE,
  19. * connectionState: string
  20. * }}
  21. */
  22. export function setConnectionState(connectionState: string) {
  23. return {
  24. type: SET_CONNECTION_STATE,
  25. connectionState
  26. };
  27. }