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:
parent
041959dc98
commit
8d645b07df
@ -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>
|
||||
|
@ -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[]
|
||||
|
@ -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]],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user