Improve DisableDMCallIdle

This commit is contained in:
Nuckyz 2024-02-07 20:39:02 -03:00
parent 3325a8de40
commit a108448255
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -27,8 +27,8 @@ export default definePlugin({
{ {
find: ".Messages.BOT_CALL_IDLE_DISCONNECT", find: ".Messages.BOT_CALL_IDLE_DISCONNECT",
replacement: { replacement: {
match: /(?<=function \i\(\){)(?=.{1,120}\.Messages\.BOT_CALL_IDLE_DISCONNECT)/, match: /,?(?=this\.idleTimeout=new \i\.Timeout)/,
replace: "return;" replace: ";return;"
} }
} }
] ]