fix: preserve channel message delivery

This commit is contained in:
lofyer
2026-08-13 02:09:09 +08:00
parent 67cb69f07d
commit 980f3a0c8f
15 changed files with 586 additions and 130 deletions
+4 -4
View File
@@ -9,12 +9,12 @@ import type { ChannelResultMessage } from '../../shared/channel-contracts'
export class SqliteChannelDedupStore implements DedupStore {
constructor(private readonly database: AssistantDatabase) {}
claim(channel: string, eventId: string): boolean {
return this.database.claimChannelEvent(channel, eventId)
claim(channel: string, accountId: string, eventId: string): boolean {
return this.database.claimChannelEvent(channel, accountId, eventId)
}
release(channel: string, eventId: string): void {
this.database.releaseChannelEvent(channel, eventId)
release(channel: string, accountId: string, eventId: string): void {
this.database.releaseChannelEvent(channel, accountId, eventId)
}
}