Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2963 | Rev 3069 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2963 Rev 3067
Línea 4... Línea 4...
4
 
4
 
5
import './converse.css'
5
import './converse.css'
Línea 6... Línea 6...
6
import './chat.css'
6
import './chat.css'
-
 
7
 
-
 
8
export function Chat() {
-
 
9
  const {
7
 
10
    xmpp_hostname,
-
 
11
    xmpp_username,
-
 
12
    xmpp_password,
8
export function Chat() {
13
    xmpp_domain,
9
  const { xmpp_hostname, xmpp_username, xmpp_password, xmpp_domain } =
14
    xmpp_port
Línea 10... Línea 15...
10
    useSelector((state) => state.auth)
15
  } = useSelector((state) => state.auth)
11
  const isAuth = useSelector((state) => state.auth.isAuth)
16
  const isAuth = useSelector((state) => state.auth.isAuth)
12
 
17
 
Línea 13... Línea 18...
13
  useLayoutEffect(() => {
18
  useLayoutEffect(() => {
Línea 14... Línea 19...
14
    if (!xmpp_hostname || !xmpp_username || !xmpp_password || !xmpp_domain)
19
    if (!xmpp_hostname || !xmpp_username || !xmpp_password || !xmpp_domain)
15
      return
20
      return
16
 
21
 
17
    const converse = window.converse
22
    const converse = window.converse
18
 
23
 
19
    converse.initialize({
24
    converse.initialize({
20
      bosh_service_url: `https://${xmpp_hostname}:17443/http-bind/`,
25
      bosh_service_url: `https://${xmpp_hostname}:${xmpp_port}/http-bind/`,