feat(chat): unlock history after payment
This commit is contained in:
@@ -23,6 +23,11 @@ export interface ChatState {
|
||||
* - 不被 `loadMoreHistoryActor` 设置(翻页是另一码事)
|
||||
*/
|
||||
historyLoaded: boolean;
|
||||
paymentUnlockPending: boolean;
|
||||
unlockHistoryPromptVisible: boolean;
|
||||
lockedHistoryCount: number;
|
||||
isUnlockingHistory: boolean;
|
||||
unlockHistoryError: string | null;
|
||||
}
|
||||
|
||||
export const initialState: ChatState = {
|
||||
@@ -37,4 +42,9 @@ export const initialState: ChatState = {
|
||||
hasMore: true,
|
||||
historyOffset: 0,
|
||||
historyLoaded: false,
|
||||
paymentUnlockPending: false,
|
||||
unlockHistoryPromptVisible: false,
|
||||
lockedHistoryCount: 0,
|
||||
isUnlockingHistory: false,
|
||||
unlockHistoryError: null,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user