refactor(chat): consolidate unlock state
This commit is contained in:
@@ -86,10 +86,11 @@ function selectChatState(state: ChatSnapshot): SelectedChatState {
|
||||
isLoadingMoreHistory: state.context.isLoadingMoreHistory,
|
||||
unlockHistoryPromptVisible: state.context.unlockHistoryPromptVisible,
|
||||
lockedHistoryCount: state.context.lockedHistoryCount,
|
||||
isUnlockingHistory: state.context.isUnlockingHistory,
|
||||
isUnlockingHistory: state.matches({ userSession: "unlockingHistory" }),
|
||||
unlockHistoryError: state.context.unlockHistoryError,
|
||||
isUnlockingMessage: state.context.isUnlockingMessage,
|
||||
unlockingMessageId: state.context.unlockingMessageId,
|
||||
isUnlockingMessage: state.matches({ userSession: "unlockingMessage" }),
|
||||
unlockingMessageId:
|
||||
state.context.unlockingMessage?.displayMessageId ?? null,
|
||||
unlockMessageError: state.context.unlockMessageError,
|
||||
unlockPaywallRequest: state.context.unlockPaywallRequest,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user