Merge pull request #19 from 002Hub/18-not-unreplying-after-message-posted

fix #18
This commit is contained in:
Code002Lover 2022-07-21 11:29:04 -07:00 committed by GitHub
commit 0cd761a0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,7 @@ async function postMessage() {
let r = await post("/api/post",{"message":document.getElementById("post-text").value,"reply_id":reply_id,"receiver":currentChannel})
if(window.location.href.split("?mention=")[1])location.replace('/posts');
document.getElementById("post-text").value=""
unreply()
}
document.getElementById("post-btn").addEventListener("click",postMessage)