- Fix live chat resquest
This commit is contained in:
Kum1ta
2024-08-30 16:43:24 +02:00
parent 222526c213
commit e3a1db286d
6 changed files with 29 additions and 9 deletions

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/04 19:21:10 by edbernar #+# #+# */
/* Updated: 2024/08/26 15:57:20 by edbernar ### ########.fr */
/* Updated: 2024/08/30 16:36:37 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/04 15:15:49 by edbernar #+# #+# */
/* Updated: 2024/08/24 23:45:05 by edbernar ### ########.fr */
/* Updated: 2024/08/30 15:47:44 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,6 +16,7 @@ import { userMeInfo } from "/static/javascript/typeResponse/typeLogin.js";
function typeNewPrivateMessage(content)
{
console.log(content);
messageList.push(content);
if (infoPanel.isOpen && infoPanel.id === content.channel)
{

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/02 01:56:15 by edbernar #+# #+# */
/* Updated: 2024/08/03 14:36:20 by edbernar ### ########.fr */
/* Updated: 2024/08/30 16:34:29 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -28,7 +28,7 @@ function typePrivateListUser(list) {
userListAvailable = true;
if (userListResolve)
{
userListResolve();
userListResolve(userList);
userListResolve = null;
}
}

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/31 22:17:24 by edbernar #+# #+# */
/* Updated: 2024/08/26 14:48:48 by edbernar ### ########.fr */
/* Updated: 2024/08/30 15:42:51 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -52,6 +52,7 @@ socket.onmessage = (event) => {
}
else
{
console.log(response);
try {
functionResponse[typeResponse.indexOf(response.type)](response.content);
} catch {