make mobile channels not autofocus
This commit is contained in:
parent
05e9d4c986
commit
44befe0ef7
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue