refactor(chat): remove pagination-related state and logic from chat components
This commit is contained in:
@@ -31,13 +31,7 @@ export interface ChatState {
|
||||
creditsCharged: number;
|
||||
requiredCredits: number;
|
||||
shortfallCredits: number;
|
||||
isLoadingMore: boolean;
|
||||
hasMore: boolean;
|
||||
historyOffset: number;
|
||||
/** history 首屏可展示标志(本地快照加载完成即可进入 ready)
|
||||
* - 网络历史加载完成后会再次刷新消息列表
|
||||
* - 不被 `loadMoreHistoryActor` 设置(翻页是另一码事)
|
||||
*/
|
||||
/** history 首屏可展示标志(本地快照加载完成即可进入 ready)。 */
|
||||
historyLoaded: boolean;
|
||||
paymentUnlockPending: boolean;
|
||||
unlockHistoryPromptVisible: boolean;
|
||||
@@ -66,9 +60,6 @@ export const initialState: ChatState = {
|
||||
creditsCharged: 0,
|
||||
requiredCredits: 0,
|
||||
shortfallCredits: 0,
|
||||
isLoadingMore: false,
|
||||
hasMore: true,
|
||||
historyOffset: 0,
|
||||
historyLoaded: false,
|
||||
paymentUnlockPending: false,
|
||||
unlockHistoryPromptVisible: false,
|
||||
|
||||
Reference in New Issue
Block a user