Skip to content

Commit

Permalink
fix message cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tnfAngel committed May 10, 2024
1 parent db1c40b commit 5ff69c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/channel/InputArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ export default function InputArea({ channel }: Readonly<InputBoxProps>) {
})
);

//client.sentMessagesIds.push(tempMessageId);
if (client.links.api) {
client.sentMessagesIds.push(tempMessageId);

if (client.links.api)
await ky
.post(`${client.links.api}/channels/${channel?.id}/messages`, {
json: { content: content, nonce: tempMessageId }
Expand Down Expand Up @@ -163,6 +163,7 @@ export default function InputArea({ channel }: Readonly<InputBoxProps>) {
})
);
});
}
}
}

Expand Down

0 comments on commit 5ff69c0

Please sign in to comment.