1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 10:22:30 +01:00

fix some errors about keys

This commit is contained in:
Puyodead1 2023-11-20 10:25:33 -05:00
parent 041959dc98
commit 8d645b07df
No known key found for this signature in database
GPG Key ID: BA5F91AAEF68E5CE
3 changed files with 8 additions and 6 deletions

View File

@ -49,8 +49,8 @@ function ListSection(props: Props) {
{props.name}
</Title>
<Wrapper open={open}>
{props.items.map((item) => (
<Item>{item}</Item>
{props.items.map((item, i) => (
<Item key={i}>{item}</Item>
))}
</Wrapper>
</Container>

View File

@ -57,8 +57,9 @@ function MemberList() {
<Container>
<List>
{list
? list.map((category) => (
? list.map((category, i) => (
<ListSection
key={i}
name={category.name}
items={
category.items.map((x) => x.nick ?? x.user?.username).filter((x) => x) as string[]

View File

@ -469,6 +469,7 @@ export default class GatewayConnectionStore {
}
}
this.reconnectTimeout = 0;
this.app.setGatewayReady(true);
};
@ -478,9 +479,9 @@ export default class GatewayConnectionStore {
if (guildChannels.includes(channelId)) return;
const payload: GatewayLazyRequestData = {
guild_id: guildId,
activities: true,
threads: true,
typing: true,
// activities: true,
// threads: true,
// typing: true,
channels: {
[channelId]: [[0, 99]],
},