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.native.js 929B

12345678910111213141516171819202122232425262728293031
  1. // @flow
  2. import type { Dispatch } from 'redux';
  3. import {
  4. AlertDialog,
  5. openDialog
  6. } from '../base/dialog';
  7. import { getParticipantDisplayName } from '../base/participants';
  8. /**
  9. * Notify that we've been kicked out of the conference.
  10. *
  11. * @param {JitsiParticipant} participant - The {@link JitsiParticipant}
  12. * instance which initiated the kick event.
  13. * @param {?Function} submit - The function to execute after submiting the dialog.
  14. * @returns {Function}
  15. */
  16. export function notifyKickedOut(participant: Object, submit: ?Function) {
  17. return (dispatch: Dispatch<any>, getState: Function) => {
  18. dispatch(openDialog(AlertDialog, {
  19. contentKey: {
  20. key: 'dialog.kickTitle',
  21. params: {
  22. participantDisplayName: getParticipantDisplayName(getState, participant.getId())
  23. }
  24. },
  25. onSubmit: submit
  26. }));
  27. };
  28. }