Skip to content

Commit

Permalink
fix ack
Browse files Browse the repository at this point in the history
  • Loading branch information
jay3332 committed Dec 2, 2023
1 parent c4f501f commit d31c738
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/messaging/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,6 @@ export default function Chat(props: { channelId: number, guildId?: number, title
let [lastAckedId, setLastAckedId] = createSignal<number | null>(null)

const ack = async () => {
if (!sendable()) return

const last = api.cache?.lastMessages.get(props.channelId)
if (!last || lastAckedId() == last) return

Expand Down

0 comments on commit d31c738

Please sign in to comment.