mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 01:49:51 +08:00
fix(core): ui state (#14933)
#### PR Dependency Tree * **PR #14933** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added draft tab option to AI chat interface * Introduced "Current document" session history view in chat history popover * Added control to show/hide "New Chat" button * **Improvements** * Enhanced chat history preservation when switching between sessions * Prevented duplicate session creation requests * Improved message handling during session transitions and generation [](https://app.coderabbit.ai/change-stack/toeverything/AFFiNE/pull/14933) <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { applyDecorators, SetMetadata } from '@nestjs/common';
|
||||
import { SkipThrottle, Throttle as RawThrottle } from '@nestjs/throttler';
|
||||
import {
|
||||
SkipThrottle as RawSkipThrottle,
|
||||
Throttle as RawThrottle,
|
||||
} from '@nestjs/throttler';
|
||||
|
||||
import { ThrottlerType } from './config';
|
||||
|
||||
@@ -38,4 +41,11 @@ export function Throttle(
|
||||
);
|
||||
}
|
||||
|
||||
export { SkipThrottle };
|
||||
export function SkipThrottle(
|
||||
skip: Partial<Record<ThrottlerType, boolean>> = {
|
||||
default: true,
|
||||
strict: true,
|
||||
}
|
||||
): MethodDecorator & ClassDecorator {
|
||||
return RawSkipThrottle(skip);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user