Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2587 Rev 2588
Línea 5... Línea 5...
5
 
5
 
6
export function Chat() {
6
export function Chat() {
7
  const { xmpp_hostname, xmpp_username, xmpp_password, xmpp_domain } =
7
  const { xmpp_hostname, xmpp_username, xmpp_password, xmpp_domain } =
Línea -... Línea 8...
-
 
8
    useSelector((state) => state.auth)
-
 
9
 
8
    useSelector((state) => state.auth)
10
  console.log(converse)
9
 
11
 
Línea 10... Línea 12...
10
  useLayoutEffect(() => {
12
  /*   useLayoutEffect(() => {
11
    if (!xmpp_hostname || !xmpp_password || !xmpp_username) return
13
    if (!xmpp_hostname || !xmpp_password || !xmpp_username) return
12
 
14
 
Línea 28... Línea 30...
28
    })
30
    })
Línea 29... Línea 31...
29
 
31
 
30
    return () => {
32
    return () => {
31
      converse.connection.disconnect()
33
      converse.connection.disconnect()
32
    }
34
    }
Línea 33... Línea 35...
33
  }, [xmpp_hostname, xmpp_password, xmpp_username])
35
  }, [xmpp_hostname, xmpp_password, xmpp_username]) */
34
 
36