mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 10:22:30 +01:00
fix minor bug with merged member load
if guild is not found for a member, instead of continuing it would break and never set the app to ready
This commit is contained in:
parent
4a79ae5b6b
commit
5847ed2df0
@ -374,14 +374,11 @@ export default class GatewayConnectionStore {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.initialHeartbeatTimeout = setTimeout(
|
this.initialHeartbeatTimeout = setTimeout(() => {
|
||||||
() => {
|
this.initialHeartbeatTimeout = null;
|
||||||
this.initialHeartbeatTimeout = null;
|
this.heartbeater = setInterval(heartbeaterFn, this.heartbeatInterval!);
|
||||||
this.heartbeater = setInterval(heartbeaterFn, this.heartbeatInterval!);
|
heartbeaterFn();
|
||||||
heartbeaterFn();
|
}, Math.floor(Math.random() * this.heartbeatInterval!));
|
||||||
},
|
|
||||||
Math.floor(Math.random() * this.heartbeatInterval!),
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -494,7 +491,7 @@ export default class GatewayConnectionStore {
|
|||||||
const guild = this.app.guilds.get(m.guild_id);
|
const guild = this.app.guilds.get(m.guild_id);
|
||||||
if (!guild) {
|
if (!guild) {
|
||||||
this.logger.warn(`[Ready] Guild ${m.guild_id} not found for member ${m.id}`);
|
this.logger.warn(`[Ready] Guild ${m.guild_id} not found for member ${m.id}`);
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
guild.members.add(m);
|
guild.members.add(m);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user