feat: human error states, operator toasts and a queue/origin view in the omp UI
- classify transport and API failures into a short state with the next step - count undelivered messages and show them next to the sent counter - toast on owner paired, connection recovered and reply not delivered (throttled) - second status line previews the next queued turns - host spinner names the Telegram prompt while its turn runs - sanitize every Telegram-controlled string that reaches the widget
This commit is contained in:
1 parent
9435ff709b
commit
057281a3bb
19 files changed
+862
-22
No files matched your search
@@ -556,6 +556,8 @@ export interface TelegramInboundRouteRuntimeDeps<
|
||||
) => Promise<TResponse>;
|
||||
/** Called for every message from the paired owner, before it is dispatched. */
|
||||
onAuthorizedMessage?: (ctx: TContext) => void;
|
||||
/** Called when the first Telegram user is accepted as the bridge owner. */
|
||||
onPaired?: (userId: number, ctx: TContext) => void;
|
||||
getCurrentInstanceId?: () => string | undefined;
|
||||
getMessageOwnership?: Updates.TelegramMessageOwnershipLookup;
|
||||
getTargetOwnership?: Updates.TelegramTargetOwnershipLookup;
|
||||
@@ -2076,6 +2078,7 @@ export function createTelegramInboundRouteRuntime<
|
||||
setAllowedUserId: deps.configStore.setAllowedUserId,
|
||||
persistConfig: deps.configStore.persist,
|
||||
updateStatus: deps.updateStatus,
|
||||
onPaired: deps.onPaired,
|
||||
removePendingMediaGroupMessages: deps.mediaGroupRuntime.removeMessages,
|
||||
removeQueuedTelegramTurnsByMessageIds:
|
||||
deps.queueMutationRuntime.removeByMessageIds,
|
||||
|
||||
Reference in new issue
Block a user