add getDM endpoint

This commit is contained in:
Mystikfluu
2022-08-14 00:22:12 +02:00
parent 829c34c220
commit 18a080f349
2 changed files with 22 additions and 9 deletions
+2 -8
View File
@@ -325,6 +325,7 @@ async function mainNoti(user) {
}
document.addEventListener("visibilitychange", function() {
//cansendNoti = document.visibilityState !== 'visible'
if (document.visibilityState === 'visible') {
cansendNoti = false
} else {
@@ -360,14 +361,7 @@ function createChannel(channelname,tab) {
channelp.addEventListener("click",async function(){
switchChannel(channelname)
main()
let settings = await (await fetch("/api/settings")).json()
console.log(settings)
if(settings != "null") {
if(settings.ACCR == false) {
unreply()
}
}
unreply()
})
tab.appendChild(channelp)
}