fix: chat lag

This commit is contained in:
cha0s 2020-12-13 15:41:26 -06:00
parent a97cbc2667
commit de52716bbb

View File

@ -35,7 +35,7 @@ export default function Chat() {
setActivity(await socket.send(['Activity'])); setActivity(await socket.send(['Activity']));
}, 2000, {leading: true}); }, 2000, {leading: true});
if (!channel) { if (!channel) {
handle = setInterval(load, 300); handle = setInterval(load, 20);
} }
return () => { return () => {
if (handle) { if (handle) {