Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

actions.native.ts 801B

12345678910111213141516171819202122232425262728
  1. import { appNavigate } from '../../app/actions.native';
  2. import { IStore } from '../../app/types';
  3. import { _connectInternal } from './actions.any';
  4. export * from './actions.any';
  5. /**
  6. * Opens new connection.
  7. *
  8. * @param {string} [id] - The XMPP user's ID (e.g. {@code user@server.com}).
  9. * @param {string} [password] - The XMPP user's password.
  10. * @returns {Function}
  11. */
  12. export function connect(id?: string, password?: string) {
  13. return (dispatch: IStore['dispatch']) => dispatch(_connectInternal(id, password));
  14. }
  15. /**
  16. * Hangup.
  17. *
  18. * @param {boolean} [_requestFeedback] - Whether to attempt showing a
  19. * request for call feedback.
  20. * @returns {Function}
  21. */
  22. export function hangup(_requestFeedback = false) {
  23. return (dispatch: IStore['dispatch']) => dispatch(appNavigate(undefined));
  24. }