various fixes

This commit is contained in:
MathMan05 2025-04-10 15:36:12 -05:00
parent 93a5bfd392
commit df82ca27d1
3 changed files with 4 additions and 6 deletions

View file

@ -78,6 +78,8 @@ class Direct extends Guild {
return ddiv;
}
noChannel(addstate: boolean) {
const ghostMessages = document.getElementById("ghostMessages");
if (ghostMessages) ghostMessages.innerHTML = "";
if (addstate) {
history.pushState([this.id, undefined], "", "/channels/" + this.id);
}