make mobile channels not autofocus

This commit is contained in:
MathMan05 2025-03-15 15:18:13 -05:00
parent 05e9d4c986
commit 44befe0ef7

View file

@ -22,6 +22,7 @@ import {Member} from "./member.js";
import {Voice} from "./voice.js";
import {User} from "./user.js";
import {I18n} from "./i18n.js";
import {mobile} from "./utils/utils.js";
declare global {
interface NotificationOptions {
@ -968,7 +969,9 @@ class Channel extends SnowFlake {
? "visible"
: "hidden";
(document.getElementById("typediv") as HTMLElement).style.visibility = "visible";
(document.getElementById("typebox") as HTMLDivElement).focus();
if (!mobile) {
(document.getElementById("typebox") as HTMLDivElement).focus();
}
await this.putmessages();
await prom;
if (id !== Channel.genid) {