message refactor

This commit is contained in:
amazuecos
2025-03-24 08:12:06 +01:00
parent 61af547135
commit c0d54e28b7
26 changed files with 994 additions and 677 deletions

View File

@ -2,12 +2,12 @@ import { showNotificationMessages } from "../components/chat.js";
$(() => {
showNotificationMessages($("#chat-notification-list"))
showNotificationMessages()
const chatNotificationInterval = setInterval(() => {
showNotificationMessages($("#chat-notification-list"))
showNotificationMessages()
}, 10000)
$("#message-notification-dropdown").on("click", (e) => {
showNotificationMessages($("#chat-notification-list"))
showNotificationMessages()
})
$("#btn-log-out").on("click",() => {
clearInterval(chatNotificationInterval)