- Updated app.json to include microphone permissions and background audio support. - Added call-related dependencies in package.json and package-lock.json. - Enhanced ChatScreen to initiate calls and handle call actions. - Introduced call components in the layout for incoming call handling. - Expanded WebSocket service to manage call signaling messages and events. - Refactored authStore to initialize call state on user authentication.
80 lines
2.1 KiB
TypeScript
80 lines
2.1 KiB
TypeScript
/**
|
||
* 状态管理 Store 导出
|
||
*/
|
||
|
||
export { useAuthStore, useCurrentUser, useIsAuthenticated, useAuthLoading } from './authStore';
|
||
export {
|
||
useUserStore,
|
||
usePosts,
|
||
useNotifications,
|
||
useNotificationBadge,
|
||
useMessageUnreadCount,
|
||
useSearchHistory
|
||
} from './userStore';
|
||
|
||
// MessageManager 新架构导出(已替换 conversationStore)
|
||
export { messageManager } from './messageManager';
|
||
export type {
|
||
MessageEvent,
|
||
MessageEventType,
|
||
MessageSubscriber,
|
||
MessageManagerConversationListDeps,
|
||
} from './messageManager';
|
||
export {
|
||
CONVERSATION_LIST_PAGE_SIZE,
|
||
type ConversationListPage,
|
||
type IConversationListPagedSource,
|
||
type RemoteConversationListSourceKind,
|
||
NetworkRemoteConversationListPagedSource,
|
||
SqliteConversationListPagedSource,
|
||
createRemoteConversationListSource,
|
||
} from './conversationListSources';
|
||
export {
|
||
GROUP_MEMBER_LIST_PAGE_SIZE,
|
||
type GroupMemberListSourceKind,
|
||
type IGroupMemberListPagedSource,
|
||
NetworkCursorGroupMemberListPagedSource,
|
||
NetworkOffsetGroupMemberListPagedSource,
|
||
createRemoteGroupMemberListSource,
|
||
} from './groupMemberListSources';
|
||
export { enrichGroupMembersWithUserProfiles } from './groupMemberProfileResolver';
|
||
export { postManager } from './postManager';
|
||
export { groupManager } from './groupManager';
|
||
export { userManager } from './userManager';
|
||
export {
|
||
useHomeTabBarVisibilityStore,
|
||
} from './homeTabBarVisibilityStore';
|
||
export {
|
||
useHomeTabPressStore,
|
||
} from './homeTabPressStore';
|
||
export { callStore } from './callStore';
|
||
export {
|
||
useAppColors,
|
||
useThemePreference,
|
||
useResolvedColorScheme,
|
||
useSetThemePreference,
|
||
usePaperThemeFromStore,
|
||
ThemeBootstrap,
|
||
useThemeStore,
|
||
type ThemePreference,
|
||
type ResolvedScheme,
|
||
} from './themeStore';
|
||
export {
|
||
useConversations as useMessageManagerConversations,
|
||
useMessages,
|
||
useSendMessage,
|
||
useMarkAsRead,
|
||
useUnreadCount,
|
||
useTotalUnreadCount,
|
||
useConversation as useMessageManagerConversation,
|
||
useMessageManager,
|
||
useChat,
|
||
useMessageList,
|
||
useMessageListRefresh,
|
||
useCreateConversation,
|
||
useUpdateConversation,
|
||
useSystemUnreadCount as useMessageManagerSystemUnreadCount,
|
||
useGroupTyping,
|
||
useGroupMuted,
|
||
} from './messageManagerHooks';
|