mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat(web,hub): cancel queued messages (#568)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
import type { CodexCollaborationMode, DecryptedMessage, PermissionMode, Session, SyncEvent } from '@hapi/protocol/types'
|
||||
import type { Server } from 'socket.io'
|
||||
import type { Store } from '../store'
|
||||
import type { Store, CancelQueuedMessageResult } from '../store'
|
||||
import type { RpcRegistry } from '../socket/rpcRegistry'
|
||||
import type { SSEManager } from '../sse/sseManager'
|
||||
import { EventPublisher, type SyncEventListener } from './eventPublisher'
|
||||
@@ -312,6 +312,13 @@ export class SyncEngine {
|
||||
this.sessionCache.markMessageQueued(sessionId)
|
||||
}
|
||||
|
||||
async cancelQueuedMessage(
|
||||
sessionId: string,
|
||||
messageId: string
|
||||
): Promise<CancelQueuedMessageResult> {
|
||||
return this.messageService.cancelQueuedMessage(sessionId, messageId)
|
||||
}
|
||||
|
||||
async approvePermission(
|
||||
sessionId: string,
|
||||
requestId: string,
|
||||
|
||||
Reference in New Issue
Block a user